/* DAO Page Specific Styles */

.dao-main {
    min-height: 100vh;
    position: relative;
}

.dao-container {
    position: relative;
    min-height: calc(100vh - 80px);
}

/* Wallet Connection Overlay */
.wallet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.wallet-modal {
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    max-width: 400px;
    width: 90%;
    border: 2px solid var(--border-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.wallet-modal h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.wallet-modal p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.connect-wallet-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #512da8 0%, #673ab7 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.connect-wallet-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(81, 45, 168, 0.4);
}

.wallet-icon {
    width: 24px;
    height: 24px;
}

/* DAO Access Gate */
.dao-gate-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.dao-gate-modal {
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    border: 2px solid var(--border-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.dao-logo {
    margin-bottom: 2rem;
}

.pokemon-logo {
    font-family: 'Orbitron', 'Inter', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(45deg, #ffcb05, #3d7dca, #ffcb05);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pokemonGlow 3s ease-in-out infinite;
    margin: 0;
    text-shadow: 0 0 30px rgba(255, 203, 5, 0.5);
    letter-spacing: 2px;
}

@keyframes pokemonGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.dao-subtitle {
    display: block;
    font-size: 1rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-weight: 500;
}

.access-message {
    margin: 2rem 0;
}

.access-message h2 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.access-message p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

.password-section {
    margin: 2rem 0;
}

.password-section label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.password-section input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.password-section input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.access-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.access-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.dao-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    gap: 1rem;
}

.go-back-btn, .get-tokens-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
}

.go-back-btn {
    background: var(--bg-secondary);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.go-back-btn:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

.get-tokens-btn {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border: none;
}

.get-tokens-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.debug-btn {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-tertiary);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.debug-btn:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

/* Token Gate Message */
.token-gate-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.message-content {
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    max-width: 500px;
    width: 90%;
    border: 2px solid var(--border-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.message-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.message-content p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.get-tokens-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.get-tokens-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Blurred Forum Content */
.forum-content {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    transition: filter 0.3s ease;
}

.forum-content.blurred {
    filter: blur(8px);
    pointer-events: none;
    user-select: none;
}

.forum-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.forum-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.forum-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.forum-stats span {
    background: var(--card-bg);
    padding: 0.75rem 1.5rem;
    border-radius: 20px;
    border: 2px solid var(--border-color);
    font-weight: 600;
    color: var(--text-secondary);
}

/* Proposal Categories */
.proposal-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}

.category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category:hover {
    border-color: #667eea;
    transform: translateY(-2px);
}

.category.active {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.category h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.category .count {
    background: #667eea;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Proposals List */
.proposals-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.proposal-item {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.proposal-item:hover {
    border-color: #667eea;
    transform: translateY(-2px);
}

.proposal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.proposal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
}

.proposal-status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.proposal-status.active {
    background: #d4edda;
    color: #27ae60;
}

.proposal-status.pending {
    background: #fef9e7;
    color: #f39c12;
}

.proposal-status.discussion {
    background: #e8f2ff;
    color: #667eea;
}

.proposal-status.executed {
    background: #f8f9fa;
    color: #666;
}

.proposal-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.proposal-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.proposal-meta span {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.vote-bar {
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
}

.vote-yes {
    background: linear-gradient(90deg, #27ae60, #2ecc71);
    transition: width 0.3s ease;
}

.vote-no {
    background: linear-gradient(90deg, #e74c3c, #c0392b);
    transition: width 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dao-container {
        padding: 1rem;
    }
    
    .wallet-modal,
    .message-content {
        padding: 2rem;
        margin: 1rem;
    }
    
    .forum-header h1 {
        font-size: 2rem;
    }
    
    .forum-stats {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .proposal-categories {
        grid-template-columns: 1fr;
    }
    
    .proposal-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .proposal-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .wallet-modal,
    .message-content {
        padding: 1.5rem;
    }
    
    .forum-content {
        padding: 1rem;
    }
    
    .proposal-item {
        padding: 1.5rem;
    }
}
