/* =====================================================
   PlayZonaStore - Estilos Light Mode
   ===================================================== */

:root {
    --primary: #7c3aed;
    --primary-dark: #6d28d9;
    --dark: #f3f4f6;
    --dark-light: #ffffff;
    --light: #f8fafc;
    --text: #1f2937;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --sidebar-bg: #1a1a1a;
    --sidebar-text: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #f0f4f8;
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* ===== LAYOUT ===== */

.playzona-wrapper {
    display: flex;
    min-height: 100vh;
}

.playzona-player-sidebar {
    width: 330px;
    background: var(--sidebar-bg);
    border-right: 1px solid #333;
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    color: var(--sidebar-text);
}

.playzona-main-content {
    margin-left: 300px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #f0f4f8;
}

/* ===== PLAYER ===== */

.player-header {
    padding: 20px;
    border-bottom: 1px solid #333;
    text-align: center;
    background: var(--sidebar-bg);
}

.player-logo img {
    max-width: 150px;
    height: auto;
}

.player-logo h2 {
    font-size: 1.3rem;
    color: var(--sidebar-text);
}

.player-status {
    font-size: 0.75rem;
    color: #aaa;
    font-weight: 600;
}

.player-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.playing-track {
    margin-bottom: 20px;
}

.track-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    background: #333;
}

.track-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.track-info {
    text-align: center;
}

.track-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--sidebar-text);
    margin-bottom: 5px;
}

.track-artist {
    font-size: 0.85rem;
    color: #aaa;
}

/* ===== CONTROLES ===== */

.player-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
}

.control-btn {
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.control-btn:hover {
    color: var(--sidebar-text);
}

.play-btn {
    background: var(--primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.play-btn:hover {
    background: var(--primary-dark);
}

/* ===== HEADER ===== */

.playzona-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 40px;
}

.navbar-brand {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    white-space: nowrap;
    letter-spacing: -0.02em;
}

.navbar-nav {
    display: flex;
    list-style: none;
    gap: 40px;
    margin: 0;
    flex: 1;
}

.nav-link {
    color: var(--text);
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-form {
    display: flex;
    background: #f3f4f6;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px;
    flex: 1;
    min-width: 300px;
}

.search-input {
    background: transparent;
    border: none;
    color: var(--text);
    padding: 8px 12px;
    font-size: 0.95rem;
    outline: none;
    width: 100%;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.btn-search {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-search:hover {
    color: var(--primary);
}

.btn-theme-toggle {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-theme-toggle:hover {
    color: var(--primary);
}

/* ===== HERO SLIDER ===== */

.hero-slider {
    width: 100%;
    height: 500px;
    overflow: hidden;
    position: relative;
    margin-bottom: 60px;
    border-radius: 16px;
    margin: 20px;
    width: calc(100% - 40px);
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slider-item {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.slider-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 100%);
}

.slider-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 40px;
}

.slider-content h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.7);
    letter-spacing: -0.02em;
}

.slider-content p {
    font-size: 1.4rem;
    margin-bottom: 40px;
    max-width: 600px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
    line-height: 1.6;
}

/* Botones de navegación del slider */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.3);
    border: none;
    color: white;
    font-size: 2.5rem;
    padding: 10px 25px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-btn:hover {
    background: rgba(255,255,255,0.6);
    transform: translateY(-50%) scale(1.1);
}

.slider-prev {
    left: 30px;
}

.slider-next {
    right: 30px;
}

/* Puntos de navegación */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: rgba(255,255,255,1);
    width: 30px;
    border-radius: 6px;
}

.dot:hover {
    background: rgba(255,255,255,0.8);
}

/* ===== SECCIONES ===== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: left;
    margin-bottom: 40px;
    letter-spacing: 0.1em;
    color: var(--text);
}

/* ===== DESTACADAS ===== */

.featured-section {
    padding: 60px 20px;
    background: #f0f4f8;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 14px;
    margin-bottom: 40px;
}

.featured-card {
    background: transparent;
    border-radius: 0;
    overflow: visible;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    display: flex;
    flex-direction: column;
}

.featured-card:hover {
    transform: translateY(-2px);
}

.card-image {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;
    margin-bottom: 12px;
    border-radius: 8px;
}

.card-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}



.card-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    opacity: 1;
    transition: all 0.3s ease;
    padding: 12px;
}

.featured-card:hover .card-overlay {
    opacity: 1;
    background: transparent;
}

.btn-play-card {
    background: white;
    border: none;
    color: var(--primary);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.btn-play-card:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.card-info {
    padding: 0;
    text-align: center;
}

.card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
    line-height: 1.2;
}

.card-description {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* ===== CATEGORÍAS ===== */

.categories-section {
    padding: 40px 20px;
    background: #ffffff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 40px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.category-card {
    background: #f3f4f6;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    color: var(--text);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.category-card:hover {
    border-color: var(--primary);
    background: rgba(124, 58, 237, 0.05);
    transform: translateY(-3px);
}

.category-name {
    font-weight: 600;
    font-size: 1rem;
}

/* ===== RADIOS GRID ===== */

.radios-section {
    padding: 40px 20px;
    background: #f0f4f8;
}

.radios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.radio-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.radio-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(124, 58, 237, 0.15);
}

.radio-image {
    position: relative;
    width: 100%;
    padding-bottom: 75%;
    overflow: hidden;
    background: #f3f4f6;
}

.radio-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-play {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: var(--primary);
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
}

.radio-card:hover .btn-play {
    opacity: 1;
}

.btn-play:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.radio-info {
    padding: 15px;
}

.radio-info h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 5px;
}

.radio-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.radio-info small {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ===== FOOTER ===== */

.playzona-footer {
    background: #ffffff;
    border-top: 1px solid var(--border);
    padding: 20px 0 20px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
    padding: 0 20px;
}

.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 15px;
}

.footer-section p {
    color: var(--text-muted);
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f3f4f6;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--text);
}

.social-links a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    text-align: center;
    color: var(--text-muted);
    padding: 20px;
}

/* ===== BOTONES ===== */

.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 8px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
}

.btn-add-radio {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    padding: 10px 24px;
    border-radius: 8px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-add-radio:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

/* ===== UTILITIES ===== */

.text-center {
    text-align: center;
}

.alert {
    padding: 15px 20px;
    border-radius: 4px;
    margin: 20px;
    border-left: 4px solid;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-left-color: #10b981;
    color: #10b981;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border-left-color: #ef4444;
    color: #ef4444;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
    .playzona-wrapper {
        flex-direction: column;
    }

    .playzona-player-sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .playzona-main-content {
        margin-left: 0;
    }

    .hero-slider {
        height: 300px;
    }

    .slider-content h1 {
        font-size: 2rem;
    }

    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .search-input {
        width: 150px;
    }
}

@media (max-width: 480px) {
    .navbar-nav {
        gap: 15px;
        font-size: 0.9rem;
    }

    .hero-slider {
        height: 250px;
    }

    .slider-content h1 {
        font-size: 1.5rem;
    }

    .featured-grid,
    .radios-grid {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Agrega esto a tu style.css */

/* Contador de visitas */
.view-counter {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 5;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
