/*
Theme Name: TWIC3 BAK3D
Description: Cannabis brand theme with ACF integration
Version: 1.0
Author: Your Name
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #0a0a0a;
}

/* Header Styles */
.site-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 20px 0;
    position: relative;
    overflow: hidden;
}

.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="smoke" patternUnits="userSpaceOnUse" width="20" height="20"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23smoke)"/></svg>');
    animation: smokeFloat 20s linear infinite;
}

@keyframes smokeFloat {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-20px) rotate(360deg); }
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.logo {
    max-height: 80px;
    filter: drop-shadow(0 0 10px rgba(76, 175, 80, 0.5));
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(76, 175, 80, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(255, 193, 7, 0.1) 0%, transparent 50%);
    animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero-tagline {
    font-size: 3.5em;
    font-weight: bold;
    color: #4CAF50;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(76, 175, 80, 0.5);
    animation: glowText 2s ease-in-out infinite alternate;
}

@keyframes glowText {
    from { text-shadow: 0 0 20px rgba(76, 175, 80, 0.5); }
    to { text-shadow: 0 0 30px rgba(76, 175, 80, 0.8), 0 0 40px rgba(76, 175, 80, 0.6); }
}

.hero-subtitle {
    font-size: 1.8em;
    color: #FFC107;
    margin-bottom: 30px;
    font-weight: 300;
}

.hero-description {
    font-size: 1.2em;
    color: #e0e0e0;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* COA Section */
.coa-section {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    padding: 80px 0;
    position: relative;
}

.coa-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(76, 175, 80, 0.05) 0%, transparent 50%, rgba(255, 193, 7, 0.05) 100%);
}

.coa-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.coa-title {
    font-size: 2.5em;
    color: #4CAF50;
    text-align: center;
    margin-bottom: 50px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

.coa-category {
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(76, 175, 80, 0.2);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.coa-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.2);
}

.coa-category-title {
    font-size: 1.8em;
    color: #FFC107;
    margin-bottom: 20px;
    font-weight: bold;
}

.coa-products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.coa-product {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #4CAF50;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.coa-product::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(76, 175, 80, 0.1), transparent);
    transition: left 0.5s ease;
}

.coa-product:hover::before {
    left: 100%;
}

.coa-product:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(10px);
}

.coa-product-name {
    color: #e0e0e0;
    font-size: 1.1em;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-tagline {
        font-size: 2.5em;
    }
    
    .hero-subtitle {
        font-size: 1.4em;
    }
    
    .hero-description {
        font-size: 1.1em;
    }
    
    .coa-products {
        grid-template-columns: 1fr;
    }
    
    .coa-title {
        font-size: 2em;
    }
}

@media (max-width: 480px) {
    .hero-tagline {
        font-size: 2em;
    }
    
    .hero-subtitle {
        font-size: 1.2em;
    }
    
    .coa-category {
        padding: 20px;
    }
}

/* Age Gate Styles */
.age-gate {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.age-gate.hidden {
    opacity: 0;
    visibility: hidden;
}

.age-gate-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    border: 2px solid #4CAF50;
    box-shadow: 0 0 40px rgba(76, 175, 80, 0.3);
    position: relative;
    overflow: hidden;
}

.age-gate-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(76, 175, 80, 0.1) 0%, transparent 70%);
    animation: rotateGlow 8s linear infinite;
}

@keyframes rotateGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.age-gate-logo {
    max-width: 120px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.age-gate-title {
    font-size: 2.2em;
    color: #4CAF50;
    margin-bottom: 15px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
    position: relative;
    z-index: 2;
}

.age-gate-subtitle {
    font-size: 1.2em;
    color: #FFC107;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.age-gate-text {
    color: #e0e0e0;
    margin-bottom: 30px;
    font-size: 1.1em;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

.age-gate-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.age-gate-btn {
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.age-gate-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.age-gate-btn:hover::before {
    left: 100%;
}

.age-gate-btn.yes {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.age-gate-btn.yes:hover {
    background: linear-gradient(135deg, #45a049 0%, #4CAF50 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.6);
}

.age-gate-btn.no {
    background: linear-gradient(135deg, #666 0%, #555 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 102, 102, 0.4);
}

.age-gate-btn.no:hover {
    background: linear-gradient(135deg, #555 0%, #666 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 102, 102, 0.6);
}

.age-gate-warning {
    font-size: 0.9em;
    color: #ff9800;
    margin-top: 20px;
    position: relative;
    z-index: 2;
}

/* Site content blur when age gate is active */
body.age-gate-active #page {
    filter: blur(8px);
    pointer-events: none;
    transition: filter 0.5s ease;
}

/* Ensure the age gate itself is NOT blurred and is interactive */
body.age-gate-active .age-gate {
    filter: none;
    pointer-events: all;
}
/* Age Gate Mobile Styles */
@media (max-width: 768px) {
    .age-gate-content {
        padding: 30px 20px;
    }
    
    .age-gate-title {
        font-size: 1.8em;
    }
    
    .age-gate-subtitle {
        font-size: 1.1em;
    }
    
    .age-gate-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .age-gate-btn {
        width: 100%;
    }
}