/* style/payment-methods.css */

/* Variables for consistent colors */
:root {
    --winph-primary-color: #F2C14E;
    --winph-secondary-color: #FFD36B;
    --winph-card-bg: #111111;
    --winph-background-dark: #0A0A0A;
    --winph-text-main: #FFF6D6;
    --winph-border-color: #3A2A12;
    --winph-glow-color: #FFD36B;
    --winph-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-payment-methods {
    font-family: Arial, sans-serif;
    color: var(--winph-text-main); /* Default text color for the page content */
    background-color: var(--winph-background-dark); /* Ensure body background is respected */
}

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

/* Hero Section */
.page-payment-methods__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    overflow: hidden;
    background-color: var(--winph-background-dark);
}

.page-payment-methods__hero-image-wrapper {
    width: 100%;
    max-height: 700px; /* Limit height for aesthetic */
    overflow: hidden;
    margin-bottom: 30px;
}

.page-payment-methods__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
}

.page-payment-methods__hero-content {
    text-align: center;
    padding: 0 20px;
    max-width: 900px;
}

.page-payment-methods__main-title {
    font-size: 2.8em;
    font-weight: 700;
    color: var(--winph-secondary-color);
    margin-bottom: 15px;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.page-payment-methods__hero-description {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--winph-text-main);
}

.page-payment-methods__hero-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* General Section Styling */
.page-payment-methods__section-title {
    font-size: 2.2em;
    color: var(--winph-primary-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.page-payment-methods__section-description {
    font-size: 1.05em;
    line-height: 1.7;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--winph-text-main);
}

.page-payment-methods__note-text {
    font-size: 0.95em;
    text-align: center;
    margin-top: 30px;
    padding: 15px;
    background-color: rgba(255, 211, 107, 0.1);
    border-left: 5px solid var(--winph-primary-color);
    border-radius: 5px;
    color: var(--winph-text-main);
}

.page-payment-methods__note-text a {
    color: var(--winph-secondary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-payment-methods__note-text a:hover {
    text-decoration: underline;
}

/* Card Styles */
.page-payment-methods__card {
    background-color: var(--winph-card-bg);
    border: 1px solid var(--winph-border-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--winph-text-main);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-payment-methods__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 15px var(--winph-glow-color);
}

.page-payment-methods__card-title {
    font-size: 1.5em;
    color: var(--winph-primary-color);
    margin-top: 15px;
    margin-bottom: 10px;
    font-weight: 600;
}

.page-payment-methods__card-text {
    font-size: 1em;
    line-height: 1.6;
    color: var(--winph-text-main);
}

/* Buttons */
.page-payment-methods__btn-primary,
.page-payment-methods__btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: nowrap; /* Prevent text wrapping by default */
    word-wrap: normal;
}

.page-payment-methods__btn-primary {
    background: var(--winph-button-gradient);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 4px 10px rgba(242, 193, 78, 0.4);
}

.page-payment-methods__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(242, 193, 78, 0.6);
    opacity: 0.9;
}

.page-payment-methods__btn-secondary {
    background-color: transparent;
    color: var(--winph-primary-color);
    border: 2px solid var(--winph-primary-color);
}

.page-payment-methods__btn-secondary:hover {
    transform: translateY(-2px);
    background-color: rgba(242, 193, 78, 0.1);
    color: var(--winph-secondary-color);
}

.page-payment-methods__btn-small {
    padding: 10px 20px;
    font-size: 0.9em;
}

/* Section Specific Styles */
.page-payment-methods__overview-section,
.page-payment-methods__withdrawal-section,
.page-payment-methods__faq-section {
    padding: 80px 0;
    background-color: var(--winph-background-dark);
}

.page-payment-methods__deposit-section,
.page-payment-methods__security-section,
.page-payment-methods__cta-section {
    padding: 80px 0;
    background-color: #0A0A0A;
}

.page-payment-methods__dark-section {
    background-color: var(--winph-background-dark);
}

.page-payment-methods__features-grid,
.page-payment-methods__method-grid,
.page-payment-methods__security-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-payment-methods__feature-icon,
.page-payment-methods__method-image,
.page-payment-methods__security-icon {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 8px;
    display: block;
}

.page-payment-methods__method-details {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
    color: var(--winph-text-main);
}

.page-payment-methods__method-details li {
    margin-bottom: 8px;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-payment-methods__method-details li::before {
    content: '•';
    color: var(--winph-secondary-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* FAQ Section */
.page-payment-methods__faq-list {
    margin-top: 50px;
}

.page-payment-methods__faq-item {
    background-color: var(--winph-card-bg);
    border: 1px solid var(--winph-border-color);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-payment-methods__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    cursor: pointer;
    background-color: var(--winph-card-bg);
    color: var(--winph-primary-color);
    font-weight: 600;
    font-size: 1.2em;
    transition: background-color 0.3s ease;
}

.page-payment-methods__faq-question:hover {
    background-color: rgba(242, 193, 78, 0.1);
}

.page-payment-methods__faq-question h3 {
    margin: 0;
    font-size: 1em; /* Adjust H3 size within question */
    color: var(--winph-primary-color);
}

.page-payment-methods__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--winph-secondary-color);
    transition: transform 0.3s ease;
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-toggle {
    transform: rotate(45deg);
}

.page-payment-methods__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 30px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--winph-text-main);
}

.page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
    max-height: 1000px !important; /* Sufficiently large value */
    padding: 15px 30px;
}

.page-payment-methods__faq-answer p {
    margin-bottom: 1em;
    line-height: 1.7;
}

/* CTA Section */
.page-payment-methods__cta-section {
    text-align: center;
    padding: 80px 20px;
    background-color: var(--winph-background-dark);
}

.page-payment-methods__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-payment-methods__main-title {
        font-size: 2.2em;
    }
    .page-payment-methods__section-title {
        font-size: 1.8em;
    }
    .page-payment-methods__hero-section {
        padding-bottom: 40px;
    }
    .page-payment-methods__overview-section,
    .page-payment-methods__deposit-section,
    .page-payment-methods__withdrawal-section,
    .page-payment-methods__security-section,
    .page-payment-methods__faq-section,
    .page-payment-methods__cta-section {
        padding: 60px 0;
    }
    .page-payment-methods__features-grid,
    .page-payment-methods__method-grid,
    .page-payment-methods__security-features {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .page-payment-methods__main-title {
        font-size: 1.8em;
    }
    .page-payment-methods__section-title {
        font-size: 1.5em;
    }
    .page-payment-methods__hero-description,
    .page-payment-methods__section-description {
        font-size: 0.95em;
    }

    /* Mobile image responsiveness */
    .page-payment-methods img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    
    .page-payment-methods__hero-image-wrapper,
    .page-payment-methods__features-grid,
    .page-payment-methods__method-grid,
    .page-payment-methods__security-features,
    .page-payment-methods__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Mobile button responsiveness */
    .page-payment-methods__btn-primary,
    .page-payment-methods__btn-secondary,
    .page-payment-methods a[class*="button"],
    .page-payment-methods a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-payment-methods__hero-cta-buttons,
    .page-payment-methods__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-payment-methods__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }

    .page-payment-methods__faq-answer {
        padding: 0 20px;
    }

    .page-payment-methods__faq-item.active .page-payment-methods__faq-answer {
        padding: 15px 20px;
    }
    
    .page-payment-methods__hero-section {
        padding-top: 10px !important; /* Ensure small top padding */
    }
}

@media (max-width: 480px) {
    .page-payment-methods__main-title {
        font-size: 1.5em;
    }
    .page-payment-methods__section-title {
        font-size: 1.3em;
    }
    .page-payment-methods__hero-description,
    .page-payment-methods__section-description {
        font-size: 0.9em;
    }
    .page-payment-methods__card-title {
        font-size: 1.3em;
    }
    .page-payment-methods__btn-primary,
    .page-payment-methods__btn-secondary {
        font-size: 1em;
        padding: 12px 20px;
    }
    .page-payment-methods__method-details {
        padding: 0 10px;
    }
    .page-payment-methods__faq-question h3 {
        font-size: 0.95em;
    }
}