/* ===== RESET & VARIABLES ===== */
:root {
    --color-primary: #0066cc;
    --color-primary-hover: #0052a3;
    --color-bg: #ffffff;
    --color-text: #1a1a1a;
    --color-text-light: #666666;
    --color-border: #e0e0e0;
    --color-shadow: rgba(0, 0, 0, 0.08);
    --spacing-unit: 1rem;
    --border-radius: 8px;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== BASE STYLES ===== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

/* ===== HEADER ===== */
.site-header {
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
    border-bottom: 1px solid var(--color-border);
    padding: 3rem var(--spacing-unit) 2rem;
    text-align: center;
    box-shadow: 0 2px 4px var(--color-shadow);
}

.site-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.site-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
    font-weight: 400;
}

/* ===== MAIN CONTENT ===== */
.site-main {
    min-height: calc(100vh - 300px);
    padding: 3rem var(--spacing-unit);
}

/* ===== SECTION ===== */
.links-section {
    width: 100%;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    text-align: center;
}

.section-description {
    font-size: 1rem;
    color: var(--color-text-light);
    text-align: center;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== GRID LAYOUT ===== */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* ===== CARD STYLES ===== */
.link-card {
    display: flex;
    flex-direction: column;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 2px 8px var(--color-shadow);
    height: 100%;
}

.link-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.12);
    border-color: var(--color-primary);
}

.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.card-description {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
    flex-grow: 1;
    line-height: 1.5;
}

.card-button {
    display: inline-block;
    background-color: var(--color-primary);
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    align-self: flex-start;
    text-align: center;
    cursor: pointer;
}

.card-button:hover {
    background-color: var(--color-primary-hover);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.25);
}

.card-button:active {
    transform: scale(0.98);
}

/* ===== FOOTER ===== */
.site-footer {
    background-color: #f9f9f9;
    border-top: 1px solid var(--color-border);
    padding: 2rem var(--spacing-unit);
    text-align: center;
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-top: 2rem;
}

.site-footer p {
    margin-bottom: 0.5rem;
}

.site-footer a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

.site-footer a:hover {
    text-decoration: underline;
    color: var(--color-primary-hover);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .site-title {
        font-size: 1.75rem;
    }

    .site-subtitle {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .links-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }

    .site-main {
        padding: 2rem var(--spacing-unit);
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.5rem;
    }

    .site-subtitle {
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .section-description {
        font-size: 0.9rem;
    }

    .links-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .card-title {
        font-size: 1.1rem;
    }

    .card-description {
        font-size: 0.85rem;
    }

    .site-header {
        padding: 2rem var(--spacing-unit) 1.5rem;
    }

    .site-main {
        padding: 1.5rem var(--spacing-unit);
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .site-header,
    .site-footer {
        display: none;
    }

    .link-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
    }
}
