/* Latest Distribution Section */
.latest-distribution {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

.latest-distribution .section-title {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.latest-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Header Logo Link */
.logo-link {
    text-decoration: none;
    color: #4a5568; /* Match index page color */
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s ease;
}

.logo-link:hover {
    color: #2d3748;
}

.stat-amount {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
}

.stat-details {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

.stat-detail {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.stat-detail .value {
    color: white;
    font-weight: 500;
}

.stat-detail.transaction {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Contract display colors */
.contract-text {
    color: #4a5568;
}

.contract-label {
    color: #718096;
}

/* Transaction link styling */
.tx-link {
    color: white;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: inline-block;
    width: 100%;
    text-align: center;
    cursor: pointer;
}

.tx-link:hover {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    transform: translateY(-1px);
    text-decoration: none;
}

.tx-link:visited {
    color: white;
}

.tx-link svg {
    width: 14px;
    height: 14px;
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* Distribution History Section */
.distribution-history {
    padding: 60px 0;
    background: #f8fafc;
}

.table-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-top: 2rem;
}

.distribution-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.distribution-table th {
    background: #f1f5f9;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
}

.distribution-table td {
    padding: 1rem;
    border-top: 1px solid #e2e8f0;
    color: #4a5568;
}

.distribution-table tbody tr:hover {
    background: #f8fafc;
}

.loading-row {
    text-align: center;
    color: #718096;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .table-container {
        overflow-x: auto;
    }
    
    .distribution-table {
        min-width: 800px;
    }
}

@media (max-width: 768px) {
    .latest-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-amount {
        font-size: 1.5rem;
    }
} 