/**
 * Activity Hub Page Styles
 * Christmas/Holiday Activity Theme
 *
 * Dependencies:
 * - /assets/css/shared/activity-components.css (shared component styles)
 *
 * This file contains theme-specific overrides and page-specific styles.
 * Common component styles are inherited from the shared library.
 */

/* CSS Variables - Theme Specific */
:root {
    /* Christmas Theme Colors */
    --christmas-red: #ce181e;
    --christmas-dark-red: #660608;
    --christmas-green: #0d653a;
    --christmas-green-hover: #0a5230;
    
    /* Override shared component variables for Christmas theme */
    --act-primary-color: var(--christmas-red);
    --act-price-color: #e53935;
    
    /* Legacy variables for backward compatibility */
    --price-red: #e53935;
    --text-dark: #333333;
    --text-gray: #999999;
    --white: #ffffff;
}

/* Main Activity Wrapper */
.activity-wrapper,
.christmas-activity {
    min-height: 100vh;
    padding-bottom: 5rem;
    background: radial-gradient(circle, var(--christmas-red), var(--christmas-dark-red));
}

/* Container */
.activity-wrapper .lv-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .activity-wrapper .lv-container {
        padding: 0 1.25rem;
    }
}

/* Banner Section */
.activity-wrapper .banner {
    width: 100%;
    position: relative;
}

.activity-wrapper .banner-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Gift Message Section */
.activity-wrapper .gift-message {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding-top: 1.5rem;
    color: #ffffff;
    font-size: 1rem;
    font-style: italic;
}

@media (min-width: 768px) {
    .activity-wrapper .gift-message {
        padding-top: 2.5rem;
        font-size: 1.125rem;
    }
}

.activity-wrapper .gift-message .highlight-price {
    font-size: 1.25rem;
    font-weight: bold;
    margin: 0 0.25rem;
    color: #ffffff;
}

@media (min-width: 768px) {
    .activity-wrapper .gift-message .highlight-price {
        font-size: 1.5rem;
    }
}

.activity-wrapper .gift-message .gift-icon {
    margin-left: 0.5rem;
    display: inline-block;
    width: 5rem;
    height: auto;
}

@media (min-width: 768px) {
    .activity-wrapper .gift-message .gift-icon {
        width: 7.5rem;
        margin-left: 1rem;
    }
}

/* Category Tabs Section - Christmas Theme Override */
/* Base styles inherited from .act-category-tabs in shared/activity-components.css */
.activity-wrapper .category-tabs {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    padding-top: 1.5rem;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .activity-wrapper .category-tabs {
        gap: 1.5rem;
        padding-top: 2.5rem;
    }
}

/* Christmas theme specific tab styling */
.activity-wrapper .category-tab {
    background-color: var(--christmas-green);
    border-radius: 1.25rem;
    padding: 0.5rem 1rem;
    font-weight: bold;
    color: #ffffff;
    text-transform: uppercase;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    border: none;
}

@media (min-width: 768px) {
    .activity-wrapper .category-tab {
        padding: 0.75rem 1.75rem;
        font-size: 1.25rem;
    }
}

.activity-wrapper .category-tab:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.activity-wrapper .category-tab.active {
    background-color: var(--christmas-green-hover);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Activity Content Area */
.activity-wrapper .activity-content {
    padding: 2rem 0;
}

/* Product Grid Section - Christmas Theme Override */
/* Base grid styles inherited from .act-product-grid in shared/activity-components.css */
.activity-wrapper .product-grid-section {
    min-height: 20rem;
}

.activity-wrapper .product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .activity-wrapper .product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.25rem;
    }
}

/* Product Card Styles - Christmas Theme Override */
/* Base card styles inherited from .act-product-card in shared/activity-components.css */
.activity-wrapper .product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 0.5rem;
    padding: 0.75rem;
    background-color: #ffffff;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    text-align: center;
}

@media (min-width: 768px) {
    .activity-wrapper .product-card {
        padding: 1rem 1rem 1.25rem;
    }
}

.activity-wrapper .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.activity-wrapper .product-card .product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 0.25rem;
    background-color: #f5f5f5;
}

.activity-wrapper .product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.activity-wrapper .product-card:hover .product-image img {
    transform: scale(1.05);
}

.activity-wrapper .product-card h3 {
    margin-top: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--text-dark);
    line-height: 1.35;
    min-height: 2.2rem;
}

@media (min-width: 768px) {
    .activity-wrapper .product-card h3 {
        font-size: 0.9375rem;
        min-height: 2.5rem;
    }
}

/* Christmas theme specific: green hover color */
.activity-wrapper .product-card:hover h3 {
    color: var(--christmas-green);
}

/* Discount Badge - Uses shared .act-discount-badge as base */
.activity-wrapper .discount-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 10;
    background-color: var(--price-red);
    color: #ffffff;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: bold;
}

@media (min-width: 768px) {
    .activity-wrapper .discount-badge {
        font-size: 0.875rem;
        padding: 0.3rem 0.6rem;
    }
}

/* Price Styles - Uses shared .act-product-price as base */
.activity-wrapper .product-price {
    margin-top: 0.375rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
}

.activity-wrapper .product-price .current-price {
    color: var(--price-red);
    font-weight: 600;
    font-size: 1rem;
}

@media (min-width: 768px) {
    .activity-wrapper .product-price .current-price {
        font-size: 1.125rem;
    }
}

.activity-wrapper .product-price .original-price {
    color: var(--text-gray);
    text-decoration: line-through;
    font-size: 0.8125rem;
    margin-top: 0;
}

/* Shop Now Button */
.activity-wrapper .shop-now-btn {
    background-color: var(--text-dark);
    border-radius: 0.3125rem;
    margin: 0.75rem auto 0;
    padding: 0.5rem 1.25rem;
    color: #ffffff;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 400;
    transition: all 0.3s ease;
    display: inline-block;
}

@media (min-width: 768px) {
    .activity-wrapper .shop-now-btn {
        padding: 0.5rem 1.75rem;
        font-size: 0.875rem;
    }
}

.activity-wrapper .product-card:hover .shop-now-btn {
    opacity: 0.8;
}

/* Share & Earn Section */
.activity-wrapper .share-section {
    color: var(--text-dark);
    width: 100%;
    margin: 3rem 0 0;
}

.activity-wrapper .christmas-sale-border {
    border: 8px solid;
    border-image: repeating-linear-gradient(
        45deg,
        var(--christmas-red) 0px,
        var(--christmas-red) 10px,
        var(--christmas-green) 10px,
        var(--christmas-green) 20px,
        #ffffff 20px,
        #ffffff 30px
    ) 8;
    padding: 1.5rem;
    background-color: #ffffff;
    position: relative;
}

@media (min-width: 768px) {
    .activity-wrapper .christmas-sale-border {
        padding: 2rem 3rem;
    }
}

/* Section Title */
.activity-wrapper .lv-title {
    margin: 0 0 1.5rem;
    text-align: center;
    text-transform: uppercase;
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--text-dark);
}

@media (min-width: 768px) {
    .activity-wrapper .lv-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

/* Sub Section Title */
.activity-wrapper .share-section h3 {
    display: flex;
    align-items: center;
    font-size: 1rem;
    font-weight: bold;
    color: var(--text-dark);
    margin: 1.5rem 0 0.5rem;
}

@media (min-width: 768px) {
    .activity-wrapper .share-section h3 {
        font-size: 1.125rem;
    }
}

.activity-wrapper .share-section h3:first-of-type {
    margin-top: 0;
}

.activity-wrapper .share-section h3 img {
    margin-right: 0.5rem;
    width: 18px;
    height: 18px;
}

/* Rule Items */
.activity-wrapper .rule-item {
    margin-top: 0.5rem;
    display: flex;
    align-items: flex-start;
    color: var(--text-dark);
    font-size: 0.875rem;
    line-height: 1.5;
}

@media (min-width: 768px) {
    .activity-wrapper .rule-item {
        font-size: 0.9375rem;
    }
}

.activity-wrapper .rule-item .bullet {
    background-color: var(--text-dark);
    border-radius: 50%;
    margin-right: 0.5rem;
    margin-top: 0.4rem;
    width: 0.4rem;
    height: 0.4rem;
    flex-shrink: 0;
}

/* Email Link */
.activity-wrapper .email-link {
    font-size: 0.9375rem;
    color: var(--text-dark) !important;
    margin-top: 1.5rem;
    display: block;
    cursor: pointer;
    text-decoration: none;
}

.activity-wrapper .email-link .arrow {
    margin: 0 0.25rem;
}

.activity-wrapper .email-link .email-address {
    text-decoration: underline;
    display: block;
    margin-top: 0.25rem;
}

@media (min-width: 768px) {
    .activity-wrapper .email-link .email-address {
        display: inline;
        margin-top: 0;
    }
}

/* Section Spacing */
.activity-wrapper .section-spacing {
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .activity-wrapper .section-spacing {
        margin-top: 2.5rem;
    }
}

/* Bottom Image */
.activity-wrapper .share-bottom-img {
    margin-top: 1.5rem;
    max-width: 100%;
    height: auto;
    display: block;
}

/* Pagination */
.activity-wrapper .pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    gap: 0.5rem;
}

.activity-wrapper .pagination-wrapper .page-btn {
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.activity-wrapper .pagination-wrapper .page-btn:hover,
.activity-wrapper .pagination-wrapper .page-btn.active {
    background-color: var(--christmas-green);
}

/* Loading State - Uses shared .act-loading-skeleton as base */
.activity-wrapper .loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 0.5rem;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================
   Shared Component Class Aliases
   Map activity-wrapper classes to shared component classes
   ============================================ */

/* Allow using shared component classes within activity-wrapper */
.activity-wrapper .act-product-grid { /* Inherits from shared */ }
.activity-wrapper .act-product-card { /* Inherits from shared */ }
.activity-wrapper .act-category-tabs { /* Inherits from shared */ }
.activity-wrapper .act-discount-badge { /* Inherits from shared */ }
.activity-wrapper .act-loading-skeleton { /* Inherits from shared */ }
