/**
 * Tohu Governance Frontend Styles
 */

/* Proposals List */
.tohu-proposals-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin: 20px 0;
}

/* No Proposals Message */
.tohu-no-proposals {
    text-align: center;
    padding: 40px;
    background: #f5f5f5;
    border-radius: 8px;
    color: #666;
}

/* Proposal Card */
.tohu-proposal-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tohu-proposal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.tohu-proposal-expired {
    opacity: 0.7;
}

/* Header */
.tohu-proposal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #1a1a2e;
    color: #ffffff;
}

.tohu-proposal-id {
    font-weight: 600;
    font-size: 14px;
    color: #888;
}

.tohu-proposal-status {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
}

.tohu-status-active {
    background: #4CAF50;
    color: white;
}

.tohu-status-expired {
    background: #9E9E9E;
    color: white;
}

/* Image */
.tohu-proposal-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.tohu-proposal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Content */
.tohu-proposal-title {
    margin: 0;
    padding: 20px 20px 10px;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.3;
}

.tohu-proposal-excerpt {
    padding: 0 20px 10px;
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.tohu-proposal-content {
    padding: 0 20px 20px;
    font-size: 15px;
    line-height: 1.7;
    color: #333;
}

.tohu-proposal-time {
    padding: 0 20px;
    margin: 0 0 15px;
    font-size: 13px;
    color: #e67e22;
    font-weight: 500;
}

/* Vote Results */
.tohu-vote-results {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

.tohu-vote-bar {
    display: flex;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    background: #e0e0e0;
    margin-bottom: 15px;
}

.tohu-vote-bar-approve {
    background: linear-gradient(90deg, #4CAF50, #66BB6A);
}

.tohu-vote-bar-abstain {
    background: linear-gradient(90deg, #9E9E9E, #BDBDBD);
}

.tohu-vote-bar-disapprove {
    background: linear-gradient(90deg, #f44336, #EF5350);
}

.tohu-vote-counts {
    display: flex;
    justify-content: space-between;
    text-align: center;
}

.tohu-vote-count {
    flex: 1;
}

.tohu-vote-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
}

.tohu-vote-approve .tohu-vote-number {
    color: #4CAF50;
}

.tohu-vote-abstain .tohu-vote-number {
    color: #9E9E9E;
}

.tohu-vote-disapprove .tohu-vote-number {
    color: #f44336;
}

.tohu-vote-label {
    display: block;
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    margin-top: 2px;
}

/* Footer */
.tohu-proposal-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.tohu-vote-instruction {
    margin: 0;
    font-size: 13px;
    color: #888;
}

/* Responsive */
@media (max-width: 768px) {
    .tohu-proposals-list {
        grid-template-columns: 1fr;
    }
    
    .tohu-vote-number {
        font-size: 20px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .tohu-proposal-card {
        background: #2a2a3e;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    
    .tohu-proposal-header {
        background: #1a1a2e;
    }
    
    .tohu-proposal-title {
        color: #ffffff;
    }
    
    .tohu-proposal-excerpt,
    .tohu-proposal-content {
        color: #cccccc;
    }
    
    .tohu-vote-results {
        background: #1a1a2e;
        border-top-color: #333;
    }
    
    .tohu-proposal-footer {
        border-top-color: #333;
    }
    
    .tohu-no-proposals {
        background: #2a2a3e;
        color: #aaa;
    }
}
