/**
 * Theme Path CSS
 * Styling for theme headers with background images
 */

/* Theme Header Base Styles */
.theme-header {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 3rem;
}

.theme-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.theme-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.theme-header-content {
    position: relative;
    z-index: 3;
    text-align: right;
    padding: 3rem;
    max-width: 800px;
    width: 100%;
    border-radius: 8px;
    border: none;
    animation: fade-in 1s ease-out forwards;
    position: relative;
    overflow: hidden;
}

.theme-header-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    animation: shimmer 3s infinite linear;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes fade-in {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Typography */
.theme-header h1 {
    font-size: 6rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    line-height: 0.9;
    padding-bottom: 0.5rem;
    transform: skewY(-2deg);
}


.theme-header p {
    font-size: 1.4rem;
    max-width: 600px;
    margin: 0 0 1rem auto;
    position: relative;
    font-weight: 500;
    line-height: 1.4;
    font-style: italic;
    letter-spacing: 0.5px;
    padding-right: 0.5rem;
    transform: skewY(-1deg);
}



/* Theme-specific header styles */
.theme-header.cursed-power .theme-header-bg {
    background-image: url('../images/crused-power-theme.webp');
    background-position: center;
    background-size: cover;
}

.theme-header.gentle-giants .theme-header-bg {
    background-image: url('../images/gentle-giant-theme.webp');
    background-position: center;
    background-size: cover;
}

.theme-header.uchiha-legacy .theme-header-bg {
    background-image: url('../images/uchiha-theme.webp');
    background-position: center;
    background-size: cover;
}

/* Theme-specific overlay gradients */
.theme-header.cursed-power .theme-header-overlay {
    background: radial-gradient(circle at center, rgba(74, 14, 55, 0.4) 0%, rgba(61, 1, 1, 0.85) 100%);
}

.theme-header.gentle-giants .theme-header-overlay {
    background: radial-gradient(circle at center, rgba(30, 58, 95, 0.4) 0%, rgba(77, 104, 158, 0.85) 100%);
}

.theme-header.uchiha-legacy .theme-header-overlay {
    background: radial-gradient(circle at center, rgba(74, 14, 14, 0.4) 0%, rgba(44, 18, 18, 0.85) 100%);
}



/* Theme-specific title styling */
.theme-header.cursed-power h1 {
    color: #ff3366;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.7);
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.3);
}

/* Removed h1::after element */

.theme-header.gentle-giants h1 {
    color: #64c8ff;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.7);
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.3);
}

/* Removed h1::after element */

.theme-header.uchiha-legacy h1 {
    color: #ff3333;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.7);
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.3);
}

/* Removed h1::after element */

/* Theme-specific description styling */
.theme-header.cursed-power p {
    color: #ff6699;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.7);
}

.theme-header.cursed-power p::before {
    content: '"';
    font-size: 1.8rem;
    margin-right: 0.3rem;
    color: #ff3366;
}

.theme-header.cursed-power p::after {
    content: '"';
    font-size: 1.8rem;
    margin-left: 0.3rem;
    color: #ff3366;
}

.theme-header.gentle-giants p {
    color: #64c8ff;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.7);
}

.theme-header.gentle-giants p::before {
    content: '"';
    font-size: 1.8rem;
    margin-right: 0.3rem;
    color: #4a90e2;
}

.theme-header.gentle-giants p::after {
    content: '"';
    font-size: 1.8rem;
    margin-left: 0.3rem;
    color: #4a90e2;
}

.theme-header.uchiha-legacy p {
    color: #ff6666;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.7);
}

.theme-header.uchiha-legacy p::before {
    content: '"';
    font-size: 1.8rem;
    margin-right: 0.3rem;
    color: #ff3333;
}

.theme-header.uchiha-legacy p::after {
    content: '"';
    font-size: 1.8rem;
    margin-left: 0.3rem;
    color: #ff3333;
}

/* Product Count Section Styles */
.product-count-section {
    margin-bottom: 2rem;
    position: relative;
    text-align: center;
}

.results-counter {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: rgba(26, 26, 46, 0.7);
    border-radius: 4px;
    color: #fff;
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
    margin-top: -20px;
}

/* Theme-specific counter styles */
.theme-header.cursed-power ~ .product-count-section .results-counter {
    background: rgba(74, 14, 55, 0.7);
}

.theme-header.gentle-giants ~ .product-count-section .results-counter {
    background: rgba(30, 58, 95, 0.7);
}

.theme-header.uchiha-legacy ~ .product-count-section .results-counter {
    background: rgba(74, 14, 14, 0.7);
}

/* Product count number styling */
.results-counter span {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    padding: 0 0.3rem;
}

/* Theme-specific counter number styles */
.theme-header.cursed-power ~ .product-count-section .results-counter span {
    color: #ff6699;
}

.theme-header.gentle-giants ~ .product-count-section .results-counter span {
    color: #64c8ff;
}

.theme-header.uchiha-legacy ~ .product-count-section .results-counter span {
    color: #ff6666;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .theme-header {
        height: 350px;
    }
    
    .theme-header h1 {
        font-size: 5rem;
        letter-spacing: 2px;
    }
    
    .theme-header p {
        font-size: 1.2rem;
        padding-right: 0.4rem;
    }
    
    .theme-header p::before,
    .theme-header p::after {
        font-size: 1.6rem;
    }
}

@media (max-width: 650px) {
    .theme-header {
        height: 300px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .theme-header h1 {
        display: none;
    }
    
    .theme-header-content {
        text-align: center;
        padding: 2rem;
    }
    
    .theme-header h1::after {
        right: 20%;
        width: 60%;
    }
    
    .theme-header p {
        margin: 0 auto 1rem;
        padding: 0 0 0.5rem 0;
        text-align: center;
        margin-bottom: -80px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .theme-header h1 {
        display: none;
    }
    
    .theme-header-content {
        padding: 1.5rem;
        width: 90%;
    }
    
    .theme-header p {
        font-size: 1rem;
        transform: none;
        padding-bottom: 0.4rem;
    }
    
    .theme-header p::before,
    .theme-header p::after {
        font-size: 1.3rem;
    }
}