/*
 Theme Name:   Blocksy Niko Slash
 Theme URI:    https://nikoslash.com
 Description:  Child theme Blocksy pour le site e-commerce Niko Slash - Partitions et packs vidéo guitare style Slash/GN'R
 Author:       OcarinAlpes
 Author URI:   https://ocarinalpes.fr
 Template:     blocksy
 Version:      1.1.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  blocksy-nikoslash
*/

/* ==========================================================================
   NOTES IMPORTANTES
   ==========================================================================
   
   Les couleurs sont gérées via Blocksy Customizer :
   Apparence > Personnaliser > Couleurs globales
   
   Palette recommandée pour Niko Slash :
   - Color 1 : #c9a227 (Or/Doré - Accent principal)
   - Color 2 : #8B0000 (Rouge sombre - Accent secondaire)  
   - Color 3 : #1a1a1a (Noir profond - si dark mode)
   - Color 4 : #2d2d2d (Gris anthracite)
   - Color 5 : #f5f5f5 (Blanc cassé - Texte)
   
   ========================================================================== */

/* ==========================================================================
   TYPOGRAPHY - Google Fonts
   ========================================================================== */

:root {
    --niko-font-headings: 'Oswald', sans-serif;
    --niko-font-body: 'Montserrat', sans-serif;
}

/* ==========================================================================
   GLOBAL ENHANCEMENTS
   ========================================================================== */

/* Selection text - utilise les couleurs Blocksy */
::selection {
    background-color: var(--theme-palette-color-1);
    color: var(--theme-palette-color-3);
}

/* ==========================================================================
   HEADER CUSTOMIZATIONS
   ========================================================================== */

/* Header sticky avec fond semi-transparent */
[data-sticky*="yes"] .site-header {
    backdrop-filter: blur(10px);
}

/* Logo hover effect */
.site-branding img {
    transition: filter 0.3s ease;
}

.site-branding:hover img {
    filter: drop-shadow(0 0 8px var(--theme-palette-color-1));
}

/* Navigation links */
.header-menu-1 > ul > li > a {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.header-menu-1 > ul > li > a:hover {
    color: var(--theme-palette-color-1) !important;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(139, 0, 0, 0.3) 100%);
    pointer-events: none;
}

/* ==========================================================================
   SECTION "APPROUVÉ PAR SLASH"
   ========================================================================== */

.slash-endorsement {
    background: linear-gradient(180deg, var(--theme-palette-color-4, #2d2d2d) 0%, var(--theme-palette-color-3, #1a1a1a) 100%);
    border-left: 4px solid var(--theme-palette-color-1);
    padding: 2rem;
    margin: 2rem 0;
    position: relative;
}

.slash-endorsement::before {
    content: '"';
    font-size: 6rem;
    color: var(--theme-palette-color-1);
    opacity: 0.3;
    position: absolute;
    top: -20px;
    left: 20px;
    font-family: Georgia, serif;
}

.slash-endorsement blockquote {
    font-size: 1.25rem;
    font-style: italic;
    margin: 0;
    padding-left: 2rem;
}

.slash-endorsement cite {
    display: block;
    margin-top: 1rem;
    color: var(--theme-palette-color-1);
    font-weight: 600;
}

/* ==========================================================================
   STATS COUNTERS (176K abonnés, etc.)
   ========================================================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 1.5rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--theme-palette-color-1);
    font-family: var(--niko-font-headings);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--theme-palette-color-6, #a0a0a0);
    margin-top: 0.5rem;
}

/* ==========================================================================
   WOOCOMMERCE - BOUTIQUE
   ========================================================================== */

/* Product cards */
.product {
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(201, 162, 39, 0.15);
}

/* Product title */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: var(--niko-font-headings);
    text-transform: uppercase;
}

/* Price */
.woocommerce ul.products li.product .price {
    color: var(--theme-palette-color-1);
    font-weight: 700;
    font-size: 1.25rem;
}

/* Add to cart button */
.woocommerce ul.products li.product .button,
.woocommerce a.button {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Sale badge */
.woocommerce span.onsale {
    font-weight: 700;
    text-transform: uppercase;
}

/* Product categories badges */
.product-category-badge {
    display: inline-block;
    background-color: var(--theme-palette-color-1);
    color: var(--theme-palette-color-3, #1a1a1a);
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 2px;
}

.product-category-badge.badge-partition {
    background-color: var(--theme-palette-color-1);
}

.product-category-badge.badge-video {
    background-color: var(--theme-palette-color-2, #8B0000);
    color: #fff;
}

/* Single product page */
.woocommerce div.product .product_title {
    font-family: var(--niko-font-headings);
    text-transform: uppercase;
}

/* Tabs */
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: var(--theme-palette-color-1);
    border-bottom-color: var(--theme-palette-color-1);
}

/* ==========================================================================
   DOWNLOADABLE PRODUCTS SPECIFICS
   ========================================================================== */

.download-product-info {
    border: 1px solid var(--theme-palette-color-4, #444);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.download-product-info h4 {
    color: var(--theme-palette-color-1);
    margin-top: 0;
}

.download-product-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.download-product-info li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--theme-palette-color-4, #333);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.download-product-info li:last-child {
    border-bottom: none;
}

.download-product-info li::before {
    content: '✓';
    color: var(--theme-palette-color-1);
    font-weight: bold;
}

/* ==========================================================================
   VIDEO PACKS SECTION
   ========================================================================== */

.video-pack-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.video-pack-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.9) 0%, transparent 50%);
    z-index: 1;
}

.video-pack-card .pack-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    z-index: 2;
}

/* ==========================================================================
   YOUTUBE INTEGRATION
   ========================================================================== */

.youtube-embed-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.youtube-embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* YouTube lazy load placeholder */
.youtube-lazy {
    cursor: pointer;
    background-size: cover;
    background-position: center;
    position: relative;
}

.youtube-lazy::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 68 48"><path d="M66.52 7.74c-.78-2.93-2.49-5.41-5.42-6.19C55.79.13 34 0 34 0S12.21.13 6.9 1.55c-2.93.78-4.63 3.26-5.42 6.19C.06 13.05 0 24 0 24s.06 10.95 1.48 16.26c.78 2.93 2.49 5.41 5.42 6.19C12.21 47.87 34 48 34 48s21.79-.13 27.1-1.55c2.93-.78 4.64-3.26 5.42-6.19C67.94 34.95 68 24 68 24s-.06-10.95-1.48-16.26z" fill="%23212121" fill-opacity=".8"/><path d="M45 24L27 14v20" fill="%23fff"/></svg>') center/contain no-repeat;
}

.youtube-lazy:hover::before {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 68 48"><path d="M66.52 7.74c-.78-2.93-2.49-5.41-5.42-6.19C55.79.13 34 0 34 0S12.21.13 6.9 1.55c-2.93.78-4.63 3.26-5.42 6.19C.06 13.05 0 24 0 24s.06 10.95 1.48 16.26c.78 2.93 2.49 5.41 5.42 6.19C12.21 47.87 34 48 34 48s21.79-.13 27.1-1.55c2.93-.78 4.64-3.26 5.42-6.19C67.94 34.95 68 24 68 24s-.06-10.95-1.48-16.26z" fill="%23f00"/><path d="M45 24L27 14v20" fill="%23fff"/></svg>') center/contain no-repeat;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

/* Social icons */
.footer-social-icons a {
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social-icons a:hover {
    color: var(--theme-palette-color-1);
    transform: scale(1.1);
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */

.text-gold {
    color: var(--theme-palette-color-1);
}

.border-gold {
    border-color: var(--theme-palette-color-1);
}

/* Rock/Metal style decorative border */
.rock-border {
    border: 2px solid var(--theme-palette-color-1);
    position: relative;
}

.rock-border::before,
.rock-border::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: var(--theme-palette-color-1);
}

.rock-border::before {
    top: -5px;
    left: -5px;
}

.rock-border::after {
    bottom: -5px;
    right: -5px;
}

/* ==========================================================================
   DISCOUNT INFO BOX
   ========================================================================== */

.discount-info {
    background: var(--theme-palette-color-4, #f0f0f0);
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
    border-left: 3px solid var(--theme-palette-color-1);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
    .stat-number {
        font-size: 2rem;
    }

    .slash-endorsement {
        padding: 1.5rem;
    }

    .slash-endorsement blockquote {
        font-size: 1rem;
        padding-left: 1rem;
    }
    
    .slash-endorsement::before {
        font-size: 4rem;
        top: -10px;
        left: 10px;
    }
}
