/* Import Open Sans Font */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700;800&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Initial Full-Screen Hero */
.vma-hero-initial {
    width: 100%;
    height: 100vh;
    background: url('../imgs/background.png') center center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.vma-logo-large {
    max-width: 80%;
    width: 600px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

/* Floating Animation */
.floating {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Sticky Header (appears on scroll) */
.vma-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('../imgs/background.png') center center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(-100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.vma-header.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.vma-logo-small {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

/* Content Section */
.vma-content {
    min-height: 100vh;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    z-index: 1;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Performers Section */
.performers-section {
    margin-bottom: 80px;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 42px;
    color: #FF1493;
    text-align: center;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 4px 12px rgba(255, 20, 147, 0.3);
}

.performers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
    justify-items: center;
    align-items: center;
}

.performer-card {
    padding: 30px 20px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 20, 147, 0.3);
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.performer-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 8px 30px rgba(255, 20, 147, 0.5);
}

/* Gradient overlay on background images */
.performer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.7) 0%, rgba(255, 20, 147, 0.7) 100%);
    z-index: 1;
    transition: all 0.3s ease;
}

.performer-card.vanguard .performer-overlay,
.performer-card.opening .performer-overlay,
.performer-card.closing .performer-overlay {
    background: linear-gradient(135deg, rgba(255, 20, 147, 0.85) 0%, rgba(139, 0, 139, 0.85) 100%);
}

.performer-card.preshow .performer-overlay {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.8) 0%, rgba(255, 165, 0, 0.8) 100%);
}

.performer-card:hover .performer-overlay {
    opacity: 0.9;
}

/* Content layer above overlay */
.performer-content {
    position: relative;
    z-index: 2;
}

.performer-card.full-width {
    grid-column: 1 / -1;
    padding: 50px 20px;
}

.performer-card.half-width {
    grid-column: span 1.5;
}

.performer-name {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: white;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.6);
}

.performer-card.full-width .performer-name {
    font-size: 42px;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.7);
}

.performer-note {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: rgba(255, 255, 255, 1);
    margin-top: 10px;
    font-style: italic;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

/* Category Navigation */
.category-nav {
    margin: 60px 0;
    padding: 30px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-title {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: #FF1493;
    text-align: center;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.category-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.category-link {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #FF1493 0%, #FF69B4 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 20, 147, 0.3);
}

.category-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(255, 20, 147, 0.5);
    background: linear-gradient(135deg, #FF1493 0%, #FF1493 100%);
}

/* Category Sections with Grid Layout */
.category-section {
    margin-bottom: 100px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
    scroll-margin-top: 120px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-title {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 56px;
    color: #000000;
    text-align: center;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
}

/* Offset Stroke Effect - Pink in front */
.category-title.offset-stroke {
    color: #FF1493;
    -webkit-text-stroke: 2px #000000;
    text-stroke: 2px #000000;
    paint-order: stroke fill;
    text-shadow: 
        4px 4px 0 #000000,
        -2px -2px 0 #000000,
        2px -2px 0 #000000,
        -2px 2px 0 #000000;
}

.category-title.floating {
    animation: floatTitle 4s ease-in-out infinite;
}

@keyframes floatTitle {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Nominees Grid - 3 Columns */
.nominees-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    justify-items: center;
    align-items: start;
}

.nominee-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 350px;
}

.nominee-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 35px rgba(255, 20, 147, 0.4);
}

/* Nominee Images - Default 500:281 ratio (1.78:1) */
.nominee-image {
    width: 100%;
    aspect-ratio: 500 / 281;
    overflow: hidden;
    background: #f0f0f0;
}

.nominee-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Square images for Songs of the Seasons - 1:1 ratio */
.square-images .nominee-image {
    aspect-ratio: 1 / 1;
}

/* Placeholder for nominees without images */
.nominee-image-placeholder {
    width: 100%;
    aspect-ratio: 500 / 281;
    background: linear-gradient(135deg, #FFD700 0%, #FF1493 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.square-images .nominee-image-placeholder {
    aspect-ratio: 1 / 1;
}

.placeholder-icon {
    font-size: 80px;
    opacity: 0.8;
}

.nominee-info {
    padding: 20px;
    text-align: center;
}

.nominee-song {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

.nominee-artist {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 15px;
    color: #666;
    display: block;
}

/* Most Nominations Section */
.most-nominations-section {
    margin-top: 100px;
    padding: 60px 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.nominations-list {
    max-width: 900px;
    margin: 0 auto;
}

.nomination-item {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 20px 30px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 20, 147, 0.15) 100%);
    border-radius: 16px;
    border-left: 5px solid #FF1493;
    transition: all 0.3s ease;
    opacity: 0;
    animation: slideInLeft 0.6s ease-out forwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.nomination-item:hover {
    transform: translateX(10px) scale(1.02);
    box-shadow: 0 6px 20px rgba(255, 20, 147, 0.3);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25) 0%, rgba(255, 20, 147, 0.25) 100%);
}

.nomination-item:last-child {
    margin-bottom: 0;
}

.nomination-rank {
    font-family: 'Open Sans', sans-serif;
    font-weight: 800;
    font-size: 36px;
    color: #FF1493;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(255, 20, 147, 0.3);
}

.nomination-artist {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: #333;
}

.nomination-count {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: #666;
    background: rgba(255, 20, 147, 0.1);
    padding: 8px 20px;
    border-radius: 20px;
}

/* Highlight top 3 */
.nomination-item:nth-child(1) .nomination-rank {
    font-size: 48px;
    color: #FFD700;
    text-shadow: 3px 3px 6px rgba(255, 215, 0, 0.5);
}

.nomination-item:nth-child(2) .nomination-rank {
    font-size: 42px;
    color: #C0C0C0;
    text-shadow: 3px 3px 6px rgba(192, 192, 192, 0.5);
}

.nomination-item:nth-child(3) .nomination-rank {
    font-size: 40px;
    color: #CD7F32;
    text-shadow: 3px 3px 6px rgba(205, 127, 50, 0.5);
}

.nomination-item:nth-child(1) {
    border-left-color: #FFD700;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25) 0%, rgba(255, 215, 0, 0.15) 100%);
}

.nomination-item:nth-child(2) {
    border-left-color: #C0C0C0;
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.25) 0%, rgba(192, 192, 192, 0.15) 100%);
}

.nomination-item:nth-child(3) {
    border-left-color: #CD7F32;
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.25) 0%, rgba(205, 127, 50, 0.15) 100%);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .vma-logo-large {
        width: 400px;
        max-width: 70%;
    }

    .vma-header {
        height: 80px;
    }

    .vma-logo-small {
        height: 50px;
    }

    .section-title {
        font-size: 32px;
    }

    .performers-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .performer-card.full-width,
    .performer-card.half-width {
        grid-column: 1;
    }

    .performer-name {
        font-size: 24px;
    }

    .performer-card.full-width .performer-name {
        font-size: 32px;
    }

    .category-nav {
        padding: 20px;
    }

    .nav-title {
        font-size: 22px;
    }

    .category-links {
        gap: 10px;
    }

    .category-link {
        padding: 10px 18px;
        font-size: 12px;
    }

    .category-title {
        font-size: 36px;
        margin-bottom: 30px;
    }

    .category-title.offset-stroke {
        -webkit-text-stroke: 1.5px #000000;
        text-stroke: 1.5px #000000;
        text-shadow: 
            3px 3px 0 #000000,
            -1px -1px 0 #000000,
            1px -1px 0 #000000,
            -1px 1px 0 #000000;
    }

    .nominees-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .placeholder-icon {
        font-size: 60px;
    }

    .nominee-info {
        padding: 15px;
    }

    .nominee-song {
        font-size: 14px;
    }

    .nominee-artist {
        font-size: 13px;
    }

    .content-wrapper {
        padding: 30px 15px;
    }

    .category-section {
        margin-bottom: 70px;
    }

    .most-nominations-section {
        margin-top: 60px;
        padding: 40px 20px;
    }

    .nomination-item {
        grid-template-columns: 50px 1fr auto;
        gap: 15px;
        padding: 15px 20px;
    }

    .nomination-rank {
        font-size: 28px;
    }

    .nomination-item:nth-child(1) .nomination-rank {
        font-size: 38px;
    }

    .nomination-item:nth-child(2) .nomination-rank {
        font-size: 34px;
    }

    .nomination-item:nth-child(3) .nomination-rank {
        font-size: 32px;
    }

    .nomination-artist {
        font-size: 18px;
    }

    .nomination-count {
        font-size: 14px;
        padding: 6px 14px;
    }
}

@media (max-width: 480px) {
    .vma-logo-large {
        width: 300px;
        max-width: 80%;
    }

    .vma-header {
        height: 70px;
    }

    .vma-logo-small {
        height: 40px;
    }

    .section-title {
        font-size: 26px;
    }

    .performer-card {
        padding: 25px 15px;
    }

    .performer-card.full-width {
        padding: 35px 15px;
    }

    .performer-name {
        font-size: 20px;
    }

    .performer-card.full-width .performer-name {
        font-size: 26px;
    }

    .performer-note {
        font-size: 15px;
    }

    .nav-title {
        font-size: 20px;
    }

    .category-link {
        padding: 8px 14px;
        font-size: 11px;
    }

    .category-title {
        font-size: 28px;
        margin-bottom: 25px;
        letter-spacing: 1px;
    }

    .category-title.offset-stroke {
        -webkit-text-stroke: 1px #000000;
        text-stroke: 1px #000000;
        text-shadow: 
            2px 2px 0 #000000,
            -1px -1px 0 #000000;
    }

    .nominees-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .placeholder-icon {
        font-size: 70px;
    }

    .nominee-info {
        padding: 15px;
    }

    .nominee-song {
        font-size: 15px;
    }

    .nominee-artist {
        font-size: 14px;
    }

    .content-wrapper {
        padding: 20px 10px;
    }

    .category-section {
        margin-bottom: 60px;
    }

    .most-nominations-section {
        margin-top: 50px;
        padding: 30px 15px;
    }

    .nomination-item {
        grid-template-columns: 40px 1fr;
        gap: 12px;
        padding: 12px 15px;
    }

    .nomination-rank {
        font-size: 24px;
    }

    .nomination-item:nth-child(1) .nomination-rank {
        font-size: 32px;
    }

    .nomination-item:nth-child(2) .nomination-rank {
        font-size: 28px;
    }

    .nomination-item:nth-child(3) .nomination-rank {
        font-size: 26px;
    }

    .nomination-artist {
        font-size: 16px;
    }

    .nomination-count {
        grid-column: 2;
        font-size: 13px;
        padding: 5px 12px;
        justify-self: start;
        margin-top: 5px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 60px 20px;
    font-size: 24px;
    color: #666;
}

