/* Affiliate Products Page Styles */

/* Hero Section for Affiliate Page */
.affiliate-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--warm-cream) 0%, var(--accent-rose) 100%);
    text-align: center;
}

.affiliate-hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--deep-burgundy);
    margin-bottom: 1rem;
}

.affiliate-hero-content p {
    font-size: 1.3rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.affiliate-disclaimer {
    background: rgba(255, 255, 255, 0.8);
    padding: 1rem;
    border-radius: 10px;
    max-width: 800px;
    margin: 0 auto;
    border-left: 4px solid var(--primary-pink);
}

.affiliate-disclaimer p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

/* Product Categories */
.affiliate-products {
    padding: 80px 0;
    background: var(--white);
}

.category-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.category-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--accent-rose);
    background: transparent;
    color: var(--primary-pink);
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-weight: 500;
    font-family: var(--font-body);
}

.category-btn.active,
.category-btn:hover {
    background: var(--primary-pink);
    color: var(--white);
}

/* Product Sections */
.product-section {
    margin-bottom: 4rem;
}

.product-section h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--deep-burgundy);
    text-align: center;
    margin-bottom: 2rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Product Cards */
.product-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(255, 107, 157, 0.2);
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.placeholder-product {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, var(--accent-rose), var(--soft-lavender));
}

.dining-product {
    background: linear-gradient(45deg, #ff6b9d, #ffc2d1);
}

.activity-product {
    background: linear-gradient(45deg, #ff8fb3, #e8d5ff);
}

.gift-product {
    background: linear-gradient(45deg, #ffc2d1, #fef7f0);
}

.experience-product {
    background: linear-gradient(45deg, #e8d5ff, #ffd700);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--golden-accent);
    color: var(--deep-burgundy);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-content {
    padding: 1.5rem;
}

.product-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--deep-burgundy);
    margin-bottom: 0.8rem;
}

.product-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stars {
    color: var(--golden-accent);
    font-size: 1.1rem;
}

.rating-text {
    color: var(--text-light);
    font-size: 0.9rem;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.current-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-pink);
}

.original-price {
    font-size: 1.2rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.price-note {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

/* Affiliate Button */
.affiliate-btn {
    display: inline-block;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(45deg, var(--primary-pink), var(--secondary-pink));
    color: var(--white);
    text-decoration: none;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    transition: var(--transition-bounce);
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
}

.affiliate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.4);
}

/* Experience Cards Special Styling */
.experience-card {
    border: 2px solid var(--accent-rose);
}

.experience-card:hover {
    border-color: var(--primary-pink);
}

/* Why We Recommend Section */
.why-recommend {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--warm-cream) 0%, rgba(255, 107, 157, 0.1) 100%);
}

.why-recommend h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--deep-burgundy);
    text-align: center;
    margin-bottom: 3rem;
}

.recommendation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.recommendation-item {
    text-align: center;
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
}

.recommendation-item:hover {
    transform: translateY(-5px);
}

.recommendation-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.recommendation-item h3 {
    color: var(--primary-pink);
    margin-bottom: 1rem;
    font-weight: 600;
}

.recommendation-item p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Product Filtering */
.product-section {
    opacity: 1;
    transition: all 0.3s ease;
}

.product-section.hidden {
    display: none;
}

/* Loading States */
.affiliate-btn.loading {
    background: var(--text-light);
    cursor: not-allowed;
    transform: none;
}

.affiliate-btn.loading:hover {
    transform: none;
    box-shadow: none;
}

/* Responsive Design for Affiliate Page */
@media (max-width: 768px) {
    .affiliate-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .affiliate-hero-content p {
        font-size: 1.1rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .category-nav {
        gap: 0.5rem;
    }
    
    .category-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .recommendation-grid {
        grid-template-columns: 1fr;
    }
    
    .product-section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .affiliate-hero {
        padding: 100px 0 60px;
    }
    
    .affiliate-hero-content h1 {
        font-size: 2rem;
    }
    
    .product-content {
        padding: 1rem;
    }
    
    .product-content h3 {
        font-size: 1.3rem;
    }
    
    .current-price {
        font-size: 1.3rem;
    }
    
    .original-price {
        font-size: 1.1rem;
    }
}

/* Animation for product cards */
@keyframes productSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: productSlideIn 0.6s ease-out forwards;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }

/* Special hover effects */
.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 107, 157, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.product-card:hover::before {
    opacity: 1;
}

/* Affiliate link tracking styles */
.affiliate-btn[data-product] {
    position: relative;
}

.affiliate-btn[data-product]:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 10px;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.affiliate-btn[data-product]:hover:after {
    opacity: 1;
}
