/* Discounts Page Styles */

/* Prevent horizontal overflow */
.discounts-page {
    overflow-x: hidden;
    max-width: 100%;
}

/* Breadcrumb Navigation */
.breadcrumb {
    background: var(--warm-white);
    padding: 1rem 6%;
    padding-top: 5rem;
}

.breadcrumb ol {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb li:not(:last-child)::after {
    content: '›';
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--forest);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb li[aria-current="page"] {
    color: var(--text-light);
}

.discount-nav {
    background: var(--forest-dark);
    position: relative;
}

.discount-nav .logo {
    color: white;
}

.discount-nav .nav-links a {
    color: rgba(255, 255, 255, 0.8);
}

.discount-nav .nav-links a:hover,
.discount-nav .nav-links a.active {
    color: white;
}

/* Discounts Hero */
.discounts-hero {
    background: linear-gradient(135deg, var(--forest-dark) 0%, var(--forest) 50%, var(--moss) 100%);
    padding: 3rem 6% 4rem;
    color: white;
    text-align: center;
}

.discounts-hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.updated-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.discounts-hero h1 {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 2.75rem;
    margin-bottom: 1rem;
}

.discounts-hero p {
    font-size: 1.15rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* Quick Codes Overview */
.discounts-overview {
    background: white;
    padding: 2rem 6%;
    border-bottom: 1px solid #eee;
}

.quick-codes {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.quick-code-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--cream);
    border-radius: 12px;
}

.quick-code-item .brand {
    font-weight: 600;
    color: var(--text);
}

.quick-code-item code {
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--forest);
    background: white;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    letter-spacing: 1px;
}

.quick-code-item .savings {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Brand Discount Sections */
.discounts-page {
    background: var(--warm-white);
}

.brand-discount-section {
    padding: 3rem 6%;
}

.brand-discount-section:nth-child(odd) {
    background: white;
}

.brand-discount-card {
    max-width: 900px;
    margin: 0 auto;
}

.brand-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.brand-logo-large {
    max-height: 50px;
    max-width: 180px;
    object-fit: contain;
}

.brand-logo-text {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--charcoal);
    letter-spacing: 2px;
}

.brand-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.verified-badge {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: #dcfce7;
    color: #166534;
    padding: 0.4rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.verified-badge::before {
    content: '✓';
}

.rating {
    background: var(--forest);
    color: white;
    padding: 0.4rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.rating.value {
    background: var(--copper);
}

.rating.budget {
    background: #6b7280;
}

/* Discount Main Content */
.discount-main {
    margin-bottom: 2.5rem;
}

.discount-main h2 {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--charcoal);
}

.discount-main h2 .highlight {
    color: var(--forest);
    background: linear-gradient(120deg, #d1fae5 0%, #a7f3d0 100%);
    padding: 0.1rem 0.5rem;
    border-radius: 4px;
}

.discount-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Big Code Box */
.big-code-box {
    background: linear-gradient(135deg, var(--cream) 0%, #f0ebe0 100%);
    border: 2px solid var(--forest);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.code-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.code-wrapper code {
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--forest);
    letter-spacing: 4px;
    background: white;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    border: 2px dashed var(--sage);
    word-break: break-all;
    max-width: 100%;
}

.copy-btn-large {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--forest);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.copy-btn-large:hover {
    background: var(--forest-dark);
    transform: translateY(-2px);
}

.copy-btn-large.copied {
    background: #22c55e;
}

.savings-display {
    text-align: center;
}

.save-amount {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #16a34a;
    margin-bottom: 0.25rem;
}

.on-price {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Shop Buttons */
.shop-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.shop-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.shop-btn.eu {
    background: linear-gradient(135deg, #003399 0%, #004db3 100%);
    color: white;
}

.shop-btn.us {
    background: linear-gradient(135deg, #1a365d 0%, #2a4a7a 100%);
    color: white;
}

.shop-btn.single {
    background: var(--forest);
    color: white;
    padding: 1rem 3rem;
}

.shop-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.flag {
    font-size: 1.25rem;
}

/* Brand Info */
.brand-info {
    background: white;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1rem;
}

.brand-discount-section:nth-child(odd) .brand-info {
    background: var(--cream);
    border-color: transparent;
}

.brand-info h3 {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--charcoal);
}

.brand-info > p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.key-features {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.brand-discount-section:nth-child(odd) .feature {
    background: white;
}

.feature-icon {
    font-size: 1.25rem;
}

.products-covered {
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
}

.products-covered h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.products-covered ul {
    list-style: none;
}

.products-covered li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.products-covered li:last-child {
    border-bottom: none;
}

.products-covered a {
    color: var(--forest);
    text-decoration: none;
}

.products-covered a:hover {
    text-decoration: underline;
}

.products-covered strong {
    color: #16a34a;
}

.full-details-link {
    display: inline-block;
    color: var(--forest);
    font-weight: 600;
    text-decoration: none;
}

.full-details-link:hover {
    text-decoration: underline;
}

/* FAQ Section */
.discount-faq {
    padding: 4rem 6%;
    background: var(--forest-dark);
    color: white;
}

.discount-faq h2 {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2.5rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
}

.faq-item h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.faq-item p {
    font-size: 0.9rem;
    opacity: 0.85;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .breadcrumb {
        padding-top: 4.5rem;
    }

    .discounts-hero {
        padding: 2.5rem 5% 3rem;
    }

    .discounts-hero h1 {
        font-size: 2rem;
    }

    .quick-codes {
        flex-direction: column;
        align-items: center;
    }

    .quick-code-item {
        width: 100%;
        max-width: 300px;
        justify-content: space-between;
    }

    .brand-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .code-wrapper {
        flex-direction: column;
    }

    .code-wrapper code {
        font-size: 1.75rem;
        padding: 0.5rem 1.5rem;
    }

    .shop-buttons {
        flex-direction: column;
    }

    .shop-btn {
        justify-content: center;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .key-features {
        justify-content: center;
    }
}

/* Touch-friendly buttons */
@media (pointer: coarse) {
    .shop-btn,
    .copy-btn-large,
    .quick-code-item {
        min-height: 44px;
    }
}

@media (hover: none) {
    .shop-btn:hover {
        transform: none;
    }
    .shop-btn:active {
        transform: scale(0.98);
    }
}

/* 640px breakpoint */
@media (max-width: 640px) {
    .breadcrumb {
        padding-top: 4rem;
        padding-left: 4%;
        padding-right: 4%;
    }

    .discounts-hero {
        padding: 2rem 4% 2.5rem;
    }

    .discounts-hero h1 {
        font-size: 1.85rem;
    }

    .big-code-box {
        padding: 1.5rem;
    }

    .save-amount {
        font-size: 1.25rem;
    }

    .brand-discount-section {
        padding: 2rem 4%;
    }
}

/* 480px breakpoint */
@media (max-width: 480px) {
    .discounts-hero h1 {
        font-size: 1.6rem;
    }

    .discounts-hero p {
        font-size: 1rem;
    }

    .code-wrapper code {
        font-size: 1.5rem;
        padding: 0.4rem 1.25rem;
        letter-spacing: 2px;
    }

    .discount-main h2 {
        font-size: 1.4rem;
    }

    .brand-info {
        padding: 1.5rem;
    }

    .feature {
        font-size: 0.85rem;
        padding: 0.4rem 0.75rem;
    }
}

/* 375px breakpoint for ultra-small phones */
@media (max-width: 375px) {
    .breadcrumb {
        padding-top: 3.75rem;
        font-size: 0.8rem;
    }

    .discounts-hero {
        padding: 1.75rem 4% 2rem;
    }

    .discounts-hero h1 {
        font-size: 1.4rem;
    }

    .updated-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    .quick-code-item {
        padding: 0.85rem 1rem;
    }

    .quick-code-item code {
        font-size: 0.95rem;
    }

    .code-wrapper code {
        font-size: 1.25rem;
        letter-spacing: 1px;
    }

    .copy-btn-large {
        padding: 0.85rem 1.25rem;
        font-size: 0.9rem;
    }

    .shop-btn {
        padding: 0.85rem 1.5rem;
    }

    .discount-faq h2 {
        font-size: 1.5rem;
    }

    .faq-item {
        padding: 1.25rem;
    }

    .faq-item h3 {
        font-size: 0.9rem;
    }
}
