/* --- Global & Layout Styles --- */
body {
    background-color: #121212;
    color: #e0e0e0;
    font-family: sans-serif;
}

.home-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.welcome-banner {
    background-color: #1e1e1e;
    border: 1px solid #333;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
}

.welcome-banner h1 {
    margin-top: 0;
    color: #ffffff;
}

/* --- Link Card Styles --- */
.link-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.link-column h2 {
    color: #ffffff;
    border-bottom: 2px solid #333;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.link-card {
    display: block;
    background-color: #1e1e1e;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    text-decoration: none;
    color: #e0e0e0;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.link-card:hover {
    transform: translateY(-5px);
    background-color: #2a2a2a;
}

.link-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #ffffff;
    display: flex;
    align-items: center;
}

.link-card h3 i {
    margin-right: 0.75rem;
    font-size: 1.1em;
}

.link-card p {
    margin-bottom: 0;
    color: #a0a0a0;
}

.card-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.card-row .link-card {
    padding: 1.25rem;
    text-align: center;
}

/* --- Homepage Stats Section --- */
.homepage-stats {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
}

.stats-header-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1e1e1e;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1.25rem 2rem;
    margin-bottom: 2rem;
}

.header-flavor-text h3 {
    margin: 0;
    font-size: 1.5em;
    color: #ffffff;
    font-weight: bold;
}

.total-votes-display {
    text-align: right;
}

.total-votes-display p {
    margin: 0;
    font-size: 1.7em;
    font-weight: bold;
    color: #ffffff;
    line-height: 1;
}

/* --- Footer Styles --- */
.site-footer {
    background-color: #1e1e1e;
    color: #a0a0a0;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid #333;
}

/* --- Entrance Animation --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.welcome-banner,
.link-column h2,
.link-card {
  opacity: 0;
  animation: fadeInUp 0.5s ease-out forwards;
}

/* Staggered Delay - Revised Rules */
.welcome-banner { animation-delay: 0.1s; }
.link-column:nth-of-type(1) h2 { animation-delay: 0.2s; }
.link-column:nth-of-type(1) .link-card:nth-of-type(1) { animation-delay: 0.3s; }
.link-column:nth-of-type(1) .link-card:nth-of-type(2) { animation-delay: 0.4s; }
.link-column:nth-of-type(1) .link-card:nth-of-type(3) { animation-delay: 0.5s; }
.link-column:nth-of-type(1) .link-card:nth-of-type(4) { animation-delay: 0.6s; }
.link-column:nth-of-type(1) .link-card:nth-of-type(5) { animation-delay: 0.7s; }

.link-column:nth-of-type(2) h2 { animation-delay: 0.8s; }
.link-column:nth-of-type(2) > .link-card:nth-of-type(1) { animation-delay: 0.9s; }
.link-column:nth-of-type(2) > .link-card:nth-of-type(2) { animation-delay: 1.0s; }
.link-column:nth-of-type(2) > .link-card:nth-of-type(3) { animation-delay: 1.1s; }
.link-column:nth-of-type(2) .card-row .link-card:nth-of-type(1) { animation-delay: 1.2s; }
.link-column:nth-of-type(2) .card-row .link-card:nth-of-type(2) { animation-delay: 1.3s; }

/* --- Responsive Styles --- */
@media (max-width: 768px) {
    .link-grid {
        grid-template-columns: 1fr;
    }
}