/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #ffffff;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    min-height: 100vh;
    color: #000000;
    line-height: 1.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Navigation */
nav {
    margin-bottom: 60px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.9rem;
}

.nav-link {
    color: #000000;
    text-decoration: none;
    font-weight: 400;
    text-transform: uppercase;
    transition: background 0.2s;
    padding: 2px 0;
}

.nav-link:hover {
    background: rgba(0, 0, 0, 0.05);
}

.nav-link.active {
    font-weight: 700;
}

/* Header */
header {
    margin-bottom: 60px;
}

header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 10px;
    line-height: 1.2;
}

.tagline {
    font-size: 1rem;
    color: #000000;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sections */
section {
    margin-bottom: 60px;
}

section h2 {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #000000;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Music Platforms - List Style */
.platform-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    border: 1px solid #000000;
}

.platform-btn {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    text-decoration: none;
    color: #000000;
    font-weight: 400;
    font-size: 1rem;
    border-bottom: 1px solid #000000;
    transition: background 0.2s;
    background: #ffffff;
}

.platform-btn:last-child {
    border-bottom: none;
}

.platform-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.platform-btn .icon {
    display: none;
}

/* Video Showcase */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border: 1px solid #000000;
    background: #000000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Last.fm Stats */
.lastfm-config {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

#lastfm-username {
    padding: 10px 15px;
    border: 1px solid #000000;
    background: #ffffff;
    font-size: 1rem;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    min-width: 250px;
    color: #000000;
}

#lastfm-username:focus {
    outline: 2px solid #000000;
    outline-offset: 2px;
}

#load-stats-btn {
    padding: 10px 20px;
    background: #000000;
    color: #ffffff;
    border: 1px solid #000000;
    font-size: 1rem;
    font-weight: 400;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#load-stats-btn:hover {
    background: #ffffff;
    color: #000000;
}

.stats-hidden {
    display: none;
}

.error-hidden {
    display: none;
}

#error-message {
    background: #000000;
    color: #ffffff;
    padding: 15px;
    border: 1px solid #000000;
    margin-top: 20px;
    font-size: 0.9rem;
}

/* User Info */
.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    padding: 20px;
    border: 1px solid #000000;
    background: #ffffff;
}

.avatar {
    width: 80px;
    height: 80px;
    border: 1px solid #000000;
    object-fit: cover;
}

.user-details h3 {
    font-size: 1.5rem;
    color: #000000;
    margin-bottom: 5px;
    font-weight: 700;
}

.user-details p {
    color: #000000;
    font-weight: 400;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0;
    margin-bottom: 40px;
    border: 1px solid #000000;
}

.stat-card {
    background: #ffffff;
    padding: 25px;
    text-align: left;
    border-right: 1px solid #000000;
    border-bottom: 1px solid #000000;
}

.stat-card:last-child {
    border-right: none;
}

.stat-card h3 {
    font-size: 0.8rem;
    color: #000000;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #000000;
}

/* Top Sections */
.top-section {
    margin-bottom: 40px;
}

.top-section h3 {
    font-size: 1rem;
    margin-bottom: 20px;
    color: #000000;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.top-list {
    display: grid;
    gap: 0;
    border: 1px solid #000000;
}

.top-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: #ffffff;
    border-bottom: 1px solid #000000;
    transition: background 0.2s;
}

.top-item:last-child {
    border-bottom: none;
}

.top-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

.top-item img {
    width: 60px;
    height: 60px;
    border: 1px solid #000000;
    object-fit: cover;
}

.item-info {
    flex: 1;
}

.item-name {
    font-weight: 400;
    font-size: 1rem;
    color: #000000;
    margin-bottom: 3px;
}

.item-artist {
    font-size: 0.9rem;
    color: #000000;
    font-weight: 400;
}

.item-playcount {
    font-weight: 400;
    color: #000000;
    white-space: nowrap;
    font-size: 0.9rem;
}

.rank {
    font-size: 1rem;
    font-weight: 700;
    color: #000000;
    min-width: 30px;
}

/* Recommendations */
.recommendation-form {
    background: #ffffff;
    padding: 30px;
    border: 1px solid #000000;
    margin-bottom: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 400;
    color: #000000;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #000000;
    background: #ffffff;
    font-size: 1rem;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #000000;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 2px solid #000000;
    outline-offset: 2px;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    background: #000000;
    color: #ffffff;
    border: 1px solid #000000;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 400;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    background: #ffffff;
    color: #000000;
}

.recommendations-list {
    display: grid;
    gap: 0;
    border: 1px solid #000000;
}

.recommendation-card {
    background: #ffffff;
    padding: 25px;
    border-bottom: 1px solid #000000;
    transition: background 0.2s;
}

.recommendation-card:last-child {
    border-bottom: none;
}

.recommendation-card:hover {
    background: rgba(0, 0, 0, 0.05);
}

.rec-type {
    display: inline-block;
    background: #000000;
    color: #ffffff;
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    border: 1px solid #000000;
}

.rec-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 5px;
}

.rec-artist {
    color: #000000;
    font-weight: 400;
    margin-bottom: 15px;
    font-style: normal;
}

.rec-description {
    color: #000000;
    line-height: 1.6;
    margin-bottom: 15px;
    font-weight: 400;
}

.rec-link {
    display: inline-block;
    color: #000000;
    text-decoration: underline;
    font-weight: 400;
    transition: background 0.2s;
    padding: 2px 4px;
}

.rec-link:hover {
    background: rgba(0, 0, 0, 0.1);
}

.rec-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #000000;
}

.delete-btn {
    background: #ffffff;
    color: #000000;
    border: 1px solid #000000;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.delete-btn:hover {
    background: #000000;
    color: #ffffff;
}

.no-recommendations {
    text-align: center;
    color: #000000;
    padding: 40px;
    background: #ffffff;
    border: 1px solid #000000;
    font-weight: 400;
}

/* Footer */
footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #000000;
    color: #000000;
    text-align: left;
    font-size: 0.9rem;
    font-weight: 400;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }

    .nav-container {
        flex-direction: column;
        align-items: flex-start;
    }

    header h1 {
        font-size: 2rem;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        border-right: none;
    }

    .user-info {
        flex-direction: column;
        text-align: left;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}