/* ConclaveGovernance Page Styles - Premium DAO UI */

/* ========================================
   Stat Cards
   ======================================== */
.gov-stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(51, 65, 85, 0.3);
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    transition: all 0.3s ease;
}

.gov-stat-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
}

.gov-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   Gov Panel
   ======================================== */
.gov-panel {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(51, 65, 85, 0.4);
    border-radius: 1.5rem;
}

/* ========================================
   Gov Tabs
   ======================================== */
.gov-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: #64748b;
    transition: all 0.2s ease;
}

.gov-tab:hover {
    color: white;
    background: rgba(51, 65, 85, 0.5);
}

.gov-tab.active {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* ========================================
   Gov Buttons
   ======================================== */
.gov-btn-primary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.gov-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.4);
}

.gov-btn-secondary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    background: rgba(51, 65, 85, 0.5);
    border: 1px solid rgba(51, 65, 85, 0.5);
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.gov-btn-secondary:hover {
    background: rgba(71, 85, 105, 0.5);
}

/* ========================================
   Gov Input
   ======================================== */
.gov-input {
    width: 100%;
    background: rgba(2, 6, 23, 0.8);
    border: 1px solid rgba(51, 65, 85, 0.4);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: white;
    font-size: 0.875rem;
    outline: none;
    transition: all 0.2s ease;
}

.gov-input::placeholder {
    color: #334155;
}

.gov-input:focus {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
}

/* ========================================
   Proposal Card
   ======================================== */
.proposal-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(51, 65, 85, 0.4);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.proposal-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
}

.proposal-card.active {
    border-left: 3px solid #6366f1;
}

.proposal-card.passed {
    border-left: 3px solid #22c55e;
}

.proposal-card.rejected {
    border-left: 3px solid #ef4444;
}

/* ========================================
   Vote Progress Bar
   ======================================== */
.vote-progress {
    height: 8px;
    background: rgba(30, 41, 59, 0.8);
    border-radius: 999px;
    overflow: hidden;
    display: flex;
}

.vote-progress .for {
    background: linear-gradient(90deg, #22c55e, #16a34a);
    transition: width 0.5s ease;
}

.vote-progress .against {
    background: linear-gradient(90deg, #ef4444, #dc2626);
    transition: width 0.5s ease;
}

/* ========================================
   Status Badge
   ======================================== */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-badge.active {
    background: rgba(99, 102, 241, 0.2);
    color: #6366f1;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.status-badge.passed {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-badge.rejected {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ========================================
   Vote Button
   ======================================== */
.vote-btn {
    flex: 1;
    padding: 0.625rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 0.75rem;
    transition: all 0.2s ease;
}

.vote-btn.for {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.vote-btn.for:hover {
    background: #22c55e;
    color: white;
}

.vote-btn.against {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.vote-btn.against:hover {
    background: #ef4444;
    color: white;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    .gov-stat-card {
        padding: 0.875rem;
    }

    .gov-panel {
        padding: 1.25rem;
    }

    .proposal-card {
        padding: 1.25rem;
    }
}

/* ========================================
   Governance Process Cards
   ======================================== */
.gov-process-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(51, 65, 85, 0.3);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.gov-process-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-4px);
}

.gov-process-step {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.3);
}

.gov-process-icon {
    width: 56px;
    height: 56px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6366f1;
    margin: 0 auto 1rem;
}

/* ========================================
   History Timeline
   ======================================== */
.gov-history-item {
    display: flex;
    gap: 1.25rem;
    position: relative;
    padding-left: 0.5rem;
}

.gov-history-item::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 28px;
    bottom: -20px;
    width: 2px;
    background: rgba(51, 65, 85, 0.5);
}

.gov-history-item:last-child::before {
    display: none;
}

.gov-history-dot {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    position: relative;
    z-index: 1;
    margin-top: 2px;
}

.gov-history-dot.passed {
    background: #22c55e;
    border: 3px solid rgba(34, 197, 94, 0.4);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
}

.gov-history-dot.rejected {
    background: #ef4444;
    border: 3px solid rgba(239, 68, 68, 0.4);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.gov-history-content {
    flex: 1;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(51, 65, 85, 0.3);
    border-radius: 1rem;
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.gov-history-content:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateX(4px);
}

/* ========================================
   Governance FAQ Accordion
   ======================================== */
.gov-faq-item {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(51, 65, 85, 0.3);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.gov-faq-item:hover {
    border-color: rgba(99, 102, 241, 0.2);
}

.gov-faq-item.open {
    border-color: rgba(99, 102, 241, 0.3);
}

.gov-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.25rem;
    background: none;
    border: none;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: left;
    cursor: pointer;
    transition: color 0.2s;
}

.gov-faq-question:hover {
    color: #6366f1;
}

.gov-faq-arrow {
    color: #64748b;
    transition: transform 0.3s ease, color 0.2s;
    flex-shrink: 0;
}

.gov-faq-item.open .gov-faq-arrow {
    transform: rotate(180deg);
    color: #6366f1;
}

.gov-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 1.25rem;
}

.gov-faq-item.open .gov-faq-answer {
    max-height: 300px;
    padding: 0 1.25rem 1.25rem;
}

.gov-faq-answer p {
    color: #94a3b8;
    font-size: 0.875rem;
    line-height: 1.7;
}