/* Global styles */
body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #f0f0f0;
    margin: 0;
    padding: 0; /* padding handled by container */
}

/* Responsive container to center content and limit width */
.container {
    max-width: 1400px; /* Allow more horizontal space */
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    color: #00bfff;
    margin: 18px 0;
    font-size: 2.2rem;
    font-weight: bold;
}

/* Section title styling */
h2.section-title {
    text-align: center;
    color: #00bfff;
    margin-top: 0;
    margin-bottom: 28px;
    font-size: 2rem;
    font-weight: bold;
}

/* Link list card */
.link-list {
    background: #1a1f2b;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    margin: 20px auto;
}

.link-item {
    margin: 12px 0;
    padding: 12px;
    background: #22283a;
    border-radius: 8px;
    transition: background 0.3s;
}

.link-item:hover {
    background: #2e3650;
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

/* Polished card appearance */
.link-list {
        transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.link-item {
        background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.05));
        box-shadow: 0 6px 18px rgba(2,6,23,0.6);
}

.link-item a {
    display:block;
    width:100%;
    color: transparent;
    transition: color 0.3s;
}

.link-item:hover a {
    color: #00bfff;
}

/* Sidebar styling */
.sidebar {
    padding-left: 18px;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
}

.sidebar .link-list { background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(0,0,0,0.04)); }

/* Make section titles slightly elevated and sticky in sidebar */
.section-title {
    font-weight: 700;
    letter-spacing: 0.6px;
}

.sidebar .section-title {
    position: sticky;
    top: 24px;
    background: transparent;
    padding-bottom: 8px;
}

a {
    text-decoration: none;
    color: #00bfff;
    font-weight: bold;
}

a:hover {
    color: #1ecfff;
}

/* Two-column layout with 5 items per column.
     Uses CSS Grid with column flow and fixed number of rows. Falls back to single column on narrow screens. */
.link-columns-5 {
    display: grid;
    grid-auto-flow: column; /* fill down then across */
    grid-template-rows: repeat(5, auto); /* five rows per column */
    gap: 12px 20px; /* row gap and column gap */
}

@media (max-width: 700px) {
    .link-columns-5 {
        display: grid;
        grid-template-columns: 1fr;
        grid-auto-flow: row;
        grid-template-rows: none;
    }
}

/* Generic grid for other lists (responsive) */
.link-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

/* Two-column page layout: left and right columns that stack on small screens */
.two-columns {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Movie links section is wider */
    gap: 32px;
    align-items: start;
}

.column {
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (max-width: 900px) {
    .two-columns {
        grid-template-columns: 1fr; /* Stack sections vertically on smaller screens */
    }
    .section-title {
        font-size: 1.5rem;
    }
}

/* Make items more compact on very small screens */
@media (max-width: 420px) {
    .link-item {
        padding: 10px;
        font-size: 0.95rem;
    }
    h1 {
        font-size: 1.6rem;
    }
}

/* Footer styling */
footer {
    text-align: center;
    padding: 20px;
    background: #101820;
    color: #f0f0f0;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Site description styling */
.site-description {
    text-align: center;
    margin-bottom: 32px;
    color: #b0d8ff;
    font-size: 1.1rem;
    background: rgba(32, 58, 67, 0.5);
    padding: 16px 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

/* Placeholder heading styles */
.section-title[style*="opacity:0.5"] {
    font-size: 1.2rem;
    color: #b0d8ff;
    font-style: italic;
    margin-top: 32px;
    margin-bottom: 0;
    opacity: 0.5;
}

.link-item {
    position: relative;
}

.link-item a {
    color: #00bfff;
    position: relative;
}

.link-item a::after {
    content: attr(href);
    position: absolute;
    left: 50%;
    top: 120%;
    transform: translateX(-50%);
    background: #22283a;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.95rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 10;
}

.link-item a:hover::after {
    opacity: 1;
}

