/* === OMAR YT PLAY - HOMEPAGE === */
/* Clean, professional e-commerce layout with gaming accents */

/* === VARIABLES GLOBALES === */
:root {
    /* Colores de fondo */
    --bg-page: #e3e6e6;
    --bg-card: #ffffff;
    --bg-card-hover: #fafafa;
    --bg-header: #131921;
    --bg-header-secondary: #232f3e;
    --bg-gray-light: #f7f7f7;
    --bg-gray: #f0f2f2;
    
    /* Colores de acento */
    --accent-primary: #00ff41;
    --accent-primary-dark: #00cc33;
    --accent-orange: #ff9900;
    --accent-deal: #cc0c39;
    
    /* Colores de texto */
    --text-dark: #0f1111;
    --text-secondary: #565959;
    --text-muted: #888888;
    --text-link: #007185;
    --text-link-hover: #c7511f;
    --text-white: #ffffff;
    --text-price: #b12704;
    
    /* Bordes y sombras */
    --border-light: #ddd;
    --border-medium: #d5d9d9;
    --shadow-card: 0 2px 5px rgba(0,0,0,0.1);
    --shadow-card-hover: 0 4px 15px rgba(0,0,0,0.15);
    
    /* Tipografía */
    --font-primary: 'Amazon Ember', 'Segoe UI', Arial, sans-serif;
    --font-gaming: 'Orbitron', sans-serif;
    
    /* Layout */
    --max-width: 1500px;
    --card-height: 420px;
    --radius-md: 4px;
    --transition-fast: 0.2s ease;
}

/* === RESET === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-page);
    color: var(--text-dark);
    line-height: 1.5;
    min-height: 100vh;
}

/* === HEADER - AMAZON STYLE === */
.header {
    background: linear-gradient(to bottom, var(--bg-header) 0%, var(--bg-header-secondary) 100%);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--accent-primary);
}

.header .container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo h1 {
    font-family: var(--font-gaming);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo a:hover {
    border-bottom: 2px solid var(--accent-primary);
}

/* Search Bar - Amazon Style */
.search-container {
    flex: 1;
    max-width: 700px;
    display: flex;
}

.search-category {
    background: #e6e6e6;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px 0 0 4px;
    font-size: 0.85rem;
    color: #333;
    cursor: pointer;
}

.search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    font-size: 1rem;
    outline: none;
}

.search-input:focus {
    box-shadow: 0 0 0 3px var(--accent-primary);
}

.search-btn {
    background: var(--accent-primary);
    border: none;
    padding: 0 1.5rem;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background 0.2s;
}

.search-btn:hover {
    background: #00cc33;
}

.search-btn i {
    color: #000;
    font-size: 1.2rem;
}

/* Nav Links */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.nav-link:hover {
    border: 1px solid #fff;
    border-radius: 2px;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 1rem;
}

.language-switcher a {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #ccc;
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.language-switcher a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.language-switcher a.active {
    color: var(--accent-primary);
    background: rgba(0, 255, 65, 0.1);
    border-color: var(--accent-primary);
}

.language-switcher .flag {
    font-size: 1rem;
}

/* === SUB NAVIGATION === */
.sub-nav {
    background: #232f3e;
    padding: 0.5rem 0;
}

.sub-nav .container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    overflow-x: auto;
}

.sub-nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    white-space: nowrap;
    padding: 0.25rem 0.5rem;
    border-radius: 2px;
    transition: background 0.2s;
}

.sub-nav-link:hover {
    background: rgba(255,255,255,0.1);
}

.sub-nav-link.highlight {
    color: var(--accent-primary);
    font-weight: 600;
}

/* === HERO CAROUSEL - AMAZON STYLE === */
.hero-carousel {
    position: relative;
    height: 400px;
    overflow: hidden;
    background: linear-gradient(to bottom, #e3e6e6 0%, #e3e6e6 50%, #e3e6e6 100%);
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, #e3e6e6 0%, transparent 100%);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 100px;
    background: rgba(255,255,255,0.7);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #333;
    transition: background 0.2s;
}

.carousel-nav:hover {
    background: rgba(255,255,255,0.9);
}

.carousel-prev {
    left: 0;
    border-radius: 0 4px 4px 0;
}

.carousel-next {
    right: 0;
    border-radius: 4px 0 0 4px;
}

/* === MAIN CONTENT GRID === */
.main-content {
    max-width: 1500px;
    margin: -100px auto 0;
    padding: 0 1rem 2rem;
    position: relative;
    z-index: 10;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* === PRODUCT CARDS - AMAZON STYLE === */
.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: var(--card-height);
    height: auto;
    transition: box-shadow var(--transition-fast);
    border: 1px solid transparent;
    overflow: visible;
}

.product-card:hover {
    box-shadow: var(--shadow-card-hover);
}

.card-header {
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.4;
}

.card-body {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 10px;
}

.quad-item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
}

.quad-item:hover {
    transform: scale(1.02);
}

.quad-image {
    background: var(--bg-gray-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    height: 110px;
    position: relative;
    overflow: hidden;
}

.quad-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 17, 17, 0.03);
    border-radius: var(--radius-md);
    pointer-events: none;
}

.quad-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.quad-label {
    font-size: 0.75rem;
    color: var(--text-dark);
    margin-top: 6px;
    text-align: center;
    line-height: 1.3;
    height: 34px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-footer {
    margin-top: 12px;
}

.card-link {
    color: #007185;
    font-size: 0.85rem;
    text-decoration: none;
}

.card-link:hover {
    color: #c7511f;
    text-decoration: underline;
}

/* === SINGLE PRODUCT CARD === */
.single-product-card {
    background: #fff;
    border-radius: 4px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 420px;
}

.single-product-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.single-product-image img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
}

.single-product-info {
    margin-top: auto;
}

.single-product-title {
    font-size: 1rem;
    font-weight: 400;
    color: #0f1111;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.single-product-price {
    font-size: 1.25rem;
    font-weight: 400;
    color: #0f1111;
}

.price-symbol {
    font-size: 0.85rem;
    vertical-align: top;
}

.price-fraction {
    font-size: 0.85rem;
    vertical-align: top;
}

/* === DEAL BADGE === */
.deal-badge {
    display: inline-block;
    background: #cc0c39;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 2px;
    margin-bottom: 8px;
}

.deal-badge.prime {
    background: #232f3e;
}

.deal-badge.gaming {
    background: var(--accent-primary);
    color: #000;
}

/* === HORIZONTAL PRODUCT SLIDER === */
.product-slider-section {
    background: #fff;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 1.5rem;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.slider-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f1111;
}

.slider-nav {
    display: flex;
    gap: 0.5rem;
}

.slider-btn {
    width: 40px;
    height: 40px;
    background: #f0f2f2;
    border: 1px solid #d5d9d9;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.slider-btn:hover {
    background: #e3e6e6;
}

.slider-container {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 0.5rem;
}

.slider-container::-webkit-scrollbar {
    height: 8px;
}

.slider-container::-webkit-scrollbar-track {
    background: #f0f2f2;
    border-radius: 4px;
}

.slider-container::-webkit-scrollbar-thumb {
    background: #d5d9d9;
    border-radius: 4px;
}

.slider-item {
    flex: 0 0 180px;
    text-decoration: none;
    color: inherit;
}

.slider-item-image {
    width: 180px;
    height: 180px;
    background: #f7f7f7;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    margin-bottom: 0.5rem;
}

.slider-item-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.slider-item-title {
    font-size: 0.85rem;
    color: var(--text-dark);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.slider-item-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f1111;
    margin-top: 4px;
}

/* === GAMING ACCENT ELEMENTS === */
.gaming-highlight {
    border-left: 4px solid var(--accent-primary);
}

.gaming-badge {
    background: linear-gradient(135deg, var(--accent-primary) 0%, #00cc33 100%);
    color: #000;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 2px;
    font-size: 0.7rem;
    text-transform: uppercase;
}

/* === FOOTER === */
.footer {
    background: #232f3e;
    color: #fff;
    padding: 2rem 0;
    margin-top: 2rem;
}

.footer-grid {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-section h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #ddd;
    text-decoration: none;
    font-size: 0.85rem;
    line-height: 2;
}

.footer-section a:hover {
    text-decoration: underline;
}

.footer-bottom {
    background: #131921;
    padding: 1.5rem 0;
    text-align: center;
}

.footer-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.footer-copyright {
    font-size: 0.8rem;
    color: #999;
}

/* === RESPONSIVE === */
@media (max-width: 1200px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-carousel {
        height: 300px;
    }
    
    .main-content {
        margin-top: -50px;
    }
}

@media (max-width: 600px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .header .container {
        flex-wrap: wrap;
    }
    
    .search-container {
        order: 3;
        width: 100%;
        max-width: none;
    }
    
    .nav-menu {
        display: none;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* === UTILITY CLASSES === */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-primary);
    color: #000;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
}
