/* ========================================
   COMMON STYLES (Shared between Index and Release pages)
   ======================================== */

/* Layout & Backgrounds */
.main-content,
.release-container {
    position: relative;
    z-index: 2;
}

.dot {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50vh;
    z-index: 1;
    mask-image: linear-gradient(to top, black 0%, transparent 100%);
    -webkit-mask-image: linear-gradient(to top, black 0%, transparent 100%);
}

.grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50vh;
    z-index: 1;
    mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
}

/* Header Base */
header {
    height: 70px;
    width: 100vw;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.control-btn {
    background: var(--background);
    border: 1px solid var(--border);
    color: var(--foreground);
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    width: 40px;
    height: 40px;
    font-weight: 600;
}

.control-btn:hover {
    background: var(--secondary);
}

.control-btn .icon {
    width: 20px;
    height: 20px;
    stroke: var(--foreground);
    stroke-width: 2px;
}

/* Main Container Base */
main {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    height: calc(100vh - 140px);
    width: 60vw;
    margin: 0 auto;
    overflow-y: auto;
    padding: 2rem;
}

/* Footer & Links */
footer {
    height: 70px;
    width: 100vw;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

a {
    color: var(--muted-foreground);
    margin: 0 2rem;
    transition: color 0.3s;
    text-decoration: none;
}

a:hover {
    cursor: pointer;
    color: var(--foreground);
}

/* ========================================
   RESPONSIVE BREAKPOINTS (Common)
   ======================================== */

/* Tablette (landscape) et petits écrans desktop */
@media (max-width: 1024px) {
    main {
        width: 75vw;
        padding: 1.5rem;
    }

    footer {
        flex-wrap: wrap;
        /* Only in index.css originally, but safe to have */
    }

    /* index.css had padding change for footer, release.css didn't explicitly but standardizing is good */
}

/* Tablette (portrait) */
@media (max-width: 768px) {
    main {
        width: 90vw;
        height: calc(100vh - 140px);
        /* Redundant but ensures override */
        padding: 1rem;
    }

    footer {
        padding: 1rem;
        /* From index.css */
    }

    a {
        margin: 0.5rem 0.75rem;
        /* Standardized margin */
        font-size: 0.9rem;
        /* Standardized font size */
    }
}

/* Mobile */
@media (max-width: 640px) {
    main {
        width: 100vw;
        height: calc(100vh - 140px);
        padding: 0.75rem;
    }

    footer {
        flex-direction: row;
        justify-content: space-around;
        padding: 1rem 0;
        gap: 0.5rem;
    }

    a {
        margin: 0.25rem 0;
        font-size: 0.85rem;
    }

    /* Ajustement des patterns pour mobile */
    .dot,
    .grid {
        height: 30vh;
    }
}

/* Support pour les écrans très larges */
@media (min-width: 1920px) {
    main {
        width: 50vw;
        max-width: 1200px;
    }
}