/* Updated CSS for vertical genre buttons */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono&display=swap');

/* Custom MonospaceTypewriter font */
@font-face {
    font-family: 'MonospaceTypewriter';
    src: url('/assets/fonts/MonospaceTypewriter.tff') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Basic Reset and Font */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000;
    color: #F5F5F5;
    line-height: 1.7;
    font-family: 'Roboto Mono', monospace, 'Inter', sans-serif;
}

header {
    padding: 20px 30px;
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.tagline {
    font-size: 0.9rem;
    font-weight: 400;
}

/* Homepage Styles */
.links {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 10px;
}

.links a {
    color: #F5F5F5;
    text-decoration: none;
    padding: 10px 18px;
    border: 1px solid #555;
    border-radius: 5px;
    transition: border-color 0.3s, color 0.3s;
    font-size: 0.9rem;
}

.links a:hover {
    border-color: #F5F5F5;
    color: #FFF;
}

/* Responsive Video Container */
#video-container {
    position: relative;
    width: 90%;
    max-width: 600px;
    padding-bottom: 56.25%;
    overflow: hidden;
    margin: 0 auto 30px auto;
}

#video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#beatstore-link {
    color: #F5F5F5;
    text-decoration: none;
    padding: 12px 24px;
    border: 2px solid #555;
    border-radius: 5px;
    font-weight: bold;
    transition: border-color 0.3s, color 0.3s;
    display: block;
    width: 80%;
    max-width: 300px;
    margin: 30px auto 0 auto;
    text-align: center;
    font-size: 1rem;
}

#beatstore-link:hover {
    border-color: #F5F5F5;
    color: #FFF;
}

/* Beatstore Styles */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.genre-selection {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    width: auto;
    align-items: center;
    justify-content: center;
}

.genre-dropdown {
    position: relative;
    width: 100%;
}

.genre-text {
    cursor: pointer;
    font-weight: 500;
    font-size: 1.1rem;
    margin: 10px 20px 10px 0;
    display: inline-block;
    transition: color 0.2s ease;
    text-transform: uppercase;
    text-align: center;
    width: 100%;
}

.genre-text:hover {
    color: #666;
}

.genre-text .arrow-icon {
    font-size: 0.8rem;
    margin-left: 5px;
}

.beat-list {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
    align-items: center;
    text-align: center;
}

.beat-item {
    display: grid;
    grid-template-columns: 250px 80px 100px 1fr;
    align-items: start;
    padding: 10px 0;
    width: 100%;
    max-width: 900px;
    gap: 5px 10px;
}

.beat-item:last-child {
    border-bottom: none;
}

.beat-title {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.beat-bpm,
.beat-key,
.beat-price {
    white-space: normal;
    text-align: left;
    padding-right: 10px;
    font-size: 1rem !important;
}

.buy-button {
    background-color: #F5F5F5; /* White background */
    color: #000; /* Black text */
    border: none;
    padding: 5px 5px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.1);
    justify-self: end;
}

.buy-button:hover {
    background-color: #ffffff;
    color: #000000;
    transform: scale(1.05);
}

.play-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
}

/* Minimal Footer */
footer {
    text-align: center;
    padding: 25px;
    background-color: #000;
    color: #dcdcdc;
    font-size: 0.8rem;
    margin-top: 40px;
}

.no-beats {
    color: #777;
    text-align: center;
    padding: 15px 0;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    header {
        padding: 15px 20px;
        margin-bottom: 20px;
    }

    .logo {
        font-size: 2rem;
    }

    .links {
        margin-bottom: 20px;
    }

    .links a {
        padding: 8px 14px;
        font-size: 0.85rem;
    }

    #video-container {
        margin-bottom: 20px;
    }

    #beatstore-link {
        padding: 10px 20px;
        font-size: 0.9rem;
        margin-top: 20px;
    }

    .container {
        padding: 15px;
        align-items: center;
    }

    .genre-selection {
        margin-bottom: 15px;
    }

    .genre-button {
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    .beat-item {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 10px;
    }

    .beat-details {
        align-items: flex-start;
        text-align: left;
        margin-top: 10px;
    }

    .buy-button {
        font-size: 0.85rem;
        padding: 8px 10px;
        justify-self: start;
    }


    footer {
        padding: 20px;
        margin-top: 30px;
        font-size: 0.75rem;
    }
}

@media (min-width: 769px) and (max-width: 992px) {
    .container {
        padding: 25px;
        align-items: center;
    }

    .genre-selection {
        margin-bottom: 25px;
        align-items: center;
    }

    .beat-item {
        grid-template-columns: 250px 80px 100px 60px 1fr;
    }
}

@media (min-width: 993px) {
    .container {
        align-items: center;
    }

    .genre-selection {
        margin-bottom: 30px;
        align-items: center;
    }
}
