/* CSS Custom Properties for Nissan Brand Colors */
:root {
    --nissan-red: #C3012F;
    --nissan-black: #000000;
    --nissan-white: #FFFFFF;
    --nissan-dark-gray: #E3E1E1;
    --nissan-light-gray: #F1F1F1;
}

/* Nissan Brand Font */
@font-face {
    font-family: 'Nissan Brand';
    font-style: normal;
    font-weight: 300;
    src: url('./fonts/NissanBrand-Light.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Nissan Brand';
    font-style: normal;
    font-weight: 400;
    src: url('./fonts/NissanBrand-Regular.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Nissan Brand';
    font-style: normal;
    font-weight: 700;
    src: url('./fonts/NissanBrand-Bold.ttf') format('truetype');
    font-display: swap;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nissan Brand', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--nissan-white);
    color: var(--nissan-black);
    line-height: 1;
    overflow-x: hidden;
}

.container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Header Styles */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--nissan-white);
}

.logo-container {
    background-color: var(--nissan-black);
    width: 100vw;
    margin-left: calc(50% - 50vw);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.logo-header {
    padding: 50px 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo {
    max-width: 200px;
    height: auto;
    object-fit: contain;
}

.header-info {
    background-color: var(--nissan-white);
    padding: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    max-width: 440px;
    margin: 0 auto;
    width: 100%;
}

.header-info h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--nissan-black);
    line-height: 1;
    white-space: nowrap;
}

.header-info p {
    font-size: 14px;
    font-weight: 400;
    color: var(--nissan-black);
    line-height: 1.4;
    text-align: center;
}

/* Song List Styles */
.song-list {
    flex: 1;
    background-color: var(--nissan-white);
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 auto;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.song-section {
    background-color: var(--nissan-light-gray);
    border-radius: 10px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-width: 440px;
    width: 100%;
    align-items: stretch;
}

.section-header {
    padding: 0 0 15px 0;
    width: 100%;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--nissan-red);
    line-height: 1;
}

.column-headers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 0 5px 0;
    border-bottom: 2px solid var(--nissan-dark-gray);
    margin-bottom: 5px;
}

.column-header {
    font-size: 20px;
    font-weight: 700;
    color: var(--nissan-black);
    line-height: 1;
    white-space: nowrap;
}

.song-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 5px;
    font-size: 14px;
    font-weight: 400;
    color: var(--nissan-black);
}

.song-item.alternate {
    background-color: var(--nissan-dark-gray);
    border-radius: 5px;
}

.song-title {
    line-height: 1.2;
    word-wrap: break-word;
}

.song-artist {
    line-height: 1.2;
    word-wrap: break-word;
}

/* Footer Styles */
.footer {
    background-color: var(--nissan-black);
    color: var(--nissan-white);
    padding: 20px 10px 50px;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    position: sticky;
    bottom: 0;
    z-index: 100;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    text-align: center;
    max-width: 440px;
    margin: 0 auto;
    width: 100%;
}

.footer-title {
    font-size: 20px;
    line-height: 1.4;
    text-align: center;
}

.footer-title strong {
    font-weight: 700;
}

.footer-copyright {
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
}

/* Responsive Adjustments */
@media (min-width: 920px) {
    .song-list {
        flex-direction: row;
        gap: 20px;
        align-items: stretch;
    }
    
    .song-section {
        flex: 1;
        min-width: 0;
        max-width: 440px;
    }
}

@media (max-width: 919px) {
    .song-section {
        max-width: none;
    }
}

@media (max-width: 440px) {
    .container {
        max-width: 100vw;
    }
}

@media (max-height: 700px) {
    .logo-header {
        padding: 20px 0 10px;
    }
    
    .logo {
        max-width: 120px;
    }
    
    .header-info {
        padding: 5px;
        gap: 5px;
    }
    
    .header-info h1 {
        font-size: 18px;
    }
    
    .header-info p {
        font-size: 12px;
    }
    
    .footer {
        padding: 10px 10px 20px;
    }
    
    .footer-title {
        font-size: 16px;
    }
    
    .footer-copyright {
        font-size: 12px;
    }
}

/* Print Styles */
@media print {
    .header {
        position: relative;
    }
    
    .song-section {
        page-break-inside: avoid;
    }
}
