/* style/gift-codes.css */

:root {
    --primary-color: #1A202C;
    --secondary-color: #FFD700;
    --text-on-dark: #ffffff;
    --text-on-light: #333333;
    --light-bg: #f8f9fa;
    --dark-bg-section: #0a0a0a;
    --card-bg: #ffffff;
    --border-color: #e0e0e0;
}

/* Ensure page content has top padding to avoid being hidden by fixed header */
.page-gift-codes {
    padding-top: 120px; /* Default desktop padding, adjusted for fixed header */
    color: var(--text-on-dark); /* Default text color for main content on dark body background */
    background-color: var(--dark-bg-section); /* Ensure consistent dark background for the page */
}

.page-gift-codes__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-gift-codes__section {
    padding: 60px 0;
}

.page-gift-codes__dark-section {
    background-color: var(--dark-bg-section);
    color: var(--text-on-dark);
}

.page-gift-codes__light-bg {
    background-color: var(--light-bg);
    color: var(--text-on-light);
}

.page-gift-codes__section-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-gift-codes__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.page-gift-codes__paragraph {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

.page-gift-codes__paragraph--center {
    text-align: center;
}

.page-gift-codes__link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-gift-codes__link:hover {
    color: #ffd700;
    text-decoration: underline;
}

.page-gift-codes__cta-button {
    display: inline-block;
    padding: 15px 35px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1A202C;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-gift-codes__cta-button:hover {
    background: linear-gradient(135deg, #FFA500, #FFC107);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-gift-codes__cta-button--center {
    display: block;
    margin: 30px auto 0 auto;
    width: fit-content;
}

.page-gift-codes__cta-button--large {
    padding: 18px 45px;
    font-size: 20px;
}

/* Hero Banner Section */
.page-gift-codes__hero-banner {
    padding-top: 180px; /* Desktop padding for fixed header */
    padding-bottom: 80px;
    background: linear-gradient(135deg, var(--primary-color), #2d3748);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.page-gift-codes__hero-banner .page-gift-codes__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.page-gift-codes__hero-content {
    max-width: 800px;
}

.page-gift-codes__main-title {
    font-size: 48px;
    color: var(--secondary-color);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-gift-codes__subtitle {
    font-size: 20px;
    color: var(--text-on-dark);
    margin-bottom: 30px;
    line-height: 1.6;
}

.page-gift-codes__hero-image-wrapper {
    width: 100%;
    max-width: 800px;
    margin-top: 30px;
}

.page-gift-codes__hero-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    object-fit: cover;
}

/* How to Get Section */
.page-gift-codes__how-to-get {
    padding-bottom: 80px;
}

.page-gift-codes__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-gift-codes__card {
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--text-on-light);
}

.page-gift-codes__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-gift-codes__card-image {
    max-width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-gift-codes__card-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-gift-codes__card-description {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* How to Use Section */
.page-gift-codes__how-to-use .page-gift-codes__section-title {
    color: var(--primary-color);
}

.page-gift-codes__how-to-use .page-gift-codes__paragraph {
    color: var(--text-on-light);
}

.page-gift-codes__ordered-list {
    list-style-type: decimal;
    padding-left: 30px;
    margin-top: 30px;
    color: var(--text-on-light);
}

.page-gift-codes__list-item {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.page-gift-codes__list-item strong {
    color: var(--primary-color);
}

/* Common Types Section */
.page-gift-codes__common-types .page-gift-codes__section-title {
    color: var(--secondary-color);
}

.page-gift-codes__common-types .page-gift-codes__paragraph {
    color: var(--text-on-dark);
}

.page-gift-codes__unordered-list {
    list-style-type: disc;
    padding-left: 30px;
    margin-top: 30px;
    color: var(--text-on-dark);
}

.page-gift-codes__unordered-list .page-gift-codes__list-item {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.page-gift-codes__unordered-list .page-gift-codes__list-item strong {
    color: var(--secondary-color);
}

/* Reputable Platforms Section */
.page-gift-codes__reputable-platforms .page-gift-codes__section-title {
    color: var(--primary-color);
}

.page-gift-codes__reputable-platforms .page-gift-codes__paragraph {
    color: var(--text-on-light);
}

.page-gift-codes__platform-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-gift-codes__platform-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--text-on-light);
}

.page-gift-codes__platform-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-gift-codes__platform-logo {
    max-width: 120px;
    height: auto;
    margin: 0 auto 20px auto;
    display: block;
    border-radius: 8px;
}

.page-gift-codes__platform-name {
    font-size: 26px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-gift-codes__platform-name .page-gift-codes__link {
    color: var(--primary-color);
}

.page-gift-codes__platform-name .page-gift-codes__link:hover {
    color: #0066cc;
}

.page-gift-codes__platform-description {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* FAQ Section */
.page-gift-codes__faq .page-gift-codes__section-title {
    color: var(--secondary-color);
}

.page-gift-codes__faq-list {
    margin-top: 40px;
}

.page-gift-codes__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
}

.page-gift-codes__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 20px;
    opacity: 0;
}

.page-gift-codes__faq-item.active .page-gift-codes__faq-answer {
    max-height: 2000px !important;
    padding: 20px !important;
    opacity: 1;
    background: #1A202C;
    border-radius: 0 0 5px 5px;
    color: var(--text-on-dark);
}

.page-gift-codes__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: var(--primary-color);
    border: 1px solid #2d3748;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    color: var(--text-on-dark);
}

.page-gift-codes__faq-question:hover {
    background: #2d3748;
    border-color: #4a5568;
}

.page-gift-codes__faq-question:active {
    background: #4a5568;
}

.page-gift-codes__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: var(--secondary-color);
}

.page-gift-codes__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: var(--secondary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-gift-codes__faq-item.active .page-gift-codes__faq-toggle {
    color: #ffffff;
    transform: rotate(45deg);
}

/* Conclusion Section */
.page-gift-codes__conclusion .page-gift-codes__section-title {
    color: var(--primary-color);
}

.page-gift-codes__conclusion .page-gift-codes__paragraph {
    color: var(--text-on-light);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-gift-codes__main-title {
        font-size: 40px;
    }

    .page-gift-codes__subtitle {
        font-size: 18px;
    }

    .page-gift-codes__section-title {
        font-size: 32px;
    }

    .page-gift-codes__paragraph {
        font-size: 16px;
    }

    .page-gift-codes__list-item {
        font-size: 16px;
    }

    .page-gift-codes__card-title {
        font-size: 22px;
    }

    .page-gift-codes__card-description {
        font-size: 15px;
    }

    .page-gift-codes__faq-question h3 {
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    .page-gift-codes {
        padding-top: 100px !important; /* Mobile padding for fixed header */
    }

    .page-gift-codes__container {
        padding: 0 15px;
    }

    .page-gift-codes__section {
        padding: 40px 0;
    }

    .page-gift-codes__hero-banner {
        padding-top: 160px !important; /* Mobile padding for fixed header */
        padding-bottom: 40px;
    }

    .page-gift-codes__main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .page-gift-codes__subtitle {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .page-gift-codes__cta-button {
        padding: 12px 25px;
        font-size: 16px;
    }

    .page-gift-codes__cta-button--large {
        padding: 15px 35px;
        font-size: 18px;
    }

    .page-gift-codes__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .page-gift-codes__paragraph {
        font-size: 15px;
        line-height: 1.7;
    }

    .page-gift-codes__list-item {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .page-gift-codes__grid,
    .page-gift-codes__platform-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-gift-codes__card-image {
        height: 200px;
    }

    .page-gift-codes__card-title {
        font-size: 20px;
    }

    .page-gift-codes__card-description {
        font-size: 14px;
    }

    .page-gift-codes__faq-question {
        padding: 15px;
    }

    .page-gift-codes__faq-question h3 {
        font-size: 16px;
    }

    .page-gift-codes__faq-toggle {
        font-size: 20px;
        width: 24px;
        height: 24px;
    }

    .page-gift-codes__faq-answer {
        padding: 0 15px;
    }

    .page-gift-codes__faq-item.active .page-gift-codes__faq-answer {
        padding: 15px !important;
    }

    /* Image responsive handling */
    .page-gift-codes img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-gift-codes__section,
    .page-gift-codes__card,
    .page-gift-codes__container,
    .page-gift-codes__hero-banner,
    .page-gift-codes__hero-image-wrapper,
    .page-gift-codes__platform-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}