/* Deals Page Specific Styles */

.deals-section {
    padding: 3rem 0 4rem;
}

.deals-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.deals-intro p {
    font-size: 1.1rem;
    color: var(--text-gray);
    line-height: 1.7;
}

.deals-category {
    margin-bottom: 4rem;
}

.deals-category h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--primary-green);
    display: inline-block;
}

.deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.deal-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 2px solid var(--border);
    position: relative;
}

.deal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border-color: var(--primary-green);
}

.deal-card.featured {
    border-color: var(--primary-green);
    border-width: 3px;
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf7 100%);
}

.featured-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--primary-green);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.deal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.deal-card h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin: 0;
    flex: 1;
}

.discount-badge {
    background: var(--primary-green);
    color: white;
    padding: 0.35rem 0.9rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
}

.deal-description {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.code-box {
    background: var(--light-green);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.code-label {
    font-weight: 600;
    color: var(--dark-green);
    font-size: 0.9rem;
}

.discount-code {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-green);
    background: white;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    letter-spacing: 1px;
}

.copy-btn {
    background: var(--white);
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.copy-btn:hover {
    background: var(--primary-green);
    color: white;
    transform: scale(1.05);
}

.deal-link {
    display: inline-block;
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.deal-link:hover {
    color: var(--dark-green);
    text-decoration: underline;
}

.affiliate-disclosure {
    background: var(--light-green);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 4rem;
    border-left: 4px solid var(--primary-green);
}

.affiliate-disclosure h3 {
    color: var(--text-dark);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.affiliate-disclosure p {
    color: var(--text-gray);
    line-height: 1.7;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .deals-grid {
        grid-template-columns: 1fr;
    }

    .deal-header {
        flex-direction: column;
        gap: 0.75rem;
    }

    .discount-badge {
        align-self: flex-start;
    }

    .code-box {
        flex-direction: column;
        align-items: stretch;
    }

    .copy-btn {
        width: 100%;
    }
}
