/*
Theme Name: IncoinPay Theme
Theme URI: https://incoinpay.io
Author: IncoinPay Official
Description: Custom responsive theme for IncoinPay P2P Platform.
Version: 2.1
*/

:root {
    --brand-primary: #6950fb;
    --brand-hover: #563dec;
    --brand-dark: #3b28a3;
    --bg-darkest: #f0f2f5;
    --bg-dark: #f8f9fe;
    --bg-card: #ffffff;
    --text-main: #1d1d1f;
    --text-muted: #555566;
    --border-color: rgba(105, 80, 251, 0.15);
    --border-light: rgba(0, 0, 0, 0.05);
    --radius: 16px;
    --radius-btn: 8px;
    --max-width: 1100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===================== HEADER ===================== */
.site-header {
    width: 100%;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    height: 68px;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo img {
    height: 38px;
    border-radius: 8px;
    object-fit: cover;
}

/* Desktop Nav */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.desktop-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.desktop-nav a:hover {
    background: rgba(105, 80, 251, 0.08);
    color: var(--brand-primary);
}

.desktop-nav .nav-btn {
    background: var(--brand-primary);
    color: #fff;
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 700;
    margin-left: 8px;
}

.desktop-nav .nav-btn:hover {
    background: var(--brand-hover);
    color: #fff;
}

/* Hamburger (Mobile only) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    border-radius: 8px;
}

.menu-toggle div {
    width: 22px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: 0.3s;
}

/* Mobile menu (hidden on desktop) */
.mobile-menu {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    z-index: 99;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 14px 24px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.2s, color 0.2s;
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu a:hover {
    background: rgba(105, 80, 251, 0.06);
    color: var(--brand-primary);
}

/* ===================== LAYOUT ===================== */
.page-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
}

.app-shell {
    width: 100%;
    max-width: 1100px;
    padding: 20px;
    min-height: calc(100vh - 68px);
    display: flex;
    flex-direction: column;
}

/* ===================== HERO ===================== */
.hero {
    padding: 50px 32px;
    text-align: center;
    background: radial-gradient(circle at top, #ffffff 0%, var(--bg-dark) 100%);
    border-bottom: 1px solid var(--border-color);
}

.hero-img-main {
    width: 100px;
    height: 100px;
    border-radius: 22px;
    object-fit: cover;
    margin-bottom: 5px;
    box-shadow: 0 10px 30px rgba(105, 80, 251, 0.2);
    border: 2px solid rgba(105, 80, 251, 0.2);
}

.hero h1 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--brand-primary);
}

.hero p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-group {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    justify-content: center;
}

.btn {
    padding: 13px 28px;
    border-radius: var(--radius-btn);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--brand-primary);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(105, 80, 251, 0.35);
}

.btn-primary:hover {
    background: var(--brand-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(105, 80, 251, 0.45);
}

.btn-outline {
    background: transparent;
    color: var(--brand-primary);
    border: 2px solid var(--brand-primary);
}

.btn-outline:hover {
    background: rgba(105, 80, 251, 0.08);
}

.btn-full {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: flex;
}

/* ===================== CONTENT ===================== */
.content-area {
    padding: 0;
    flex: 1;
}

.section-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 28px 26px;
    margin-bottom: 22px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.04);
}

.section-image {
    width: 100%;
    max-width: 340px;
    display: block;
    margin: 20px auto;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    box-shadow: 0 5px 15px rgba(0,0,0,0.06);
}

.section-card h2 {
    font-size: 1.35rem;
    color: var(--text-main);
    margin-bottom: 18px;
    font-weight: 800;
    line-height: 1.4;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 12px;
}

.section-card h3 {
    font-size: 1.05rem;
    margin: 25px 0 10px;
    color: var(--brand-primary);
    font-weight: 700;
}

.section-card p {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.section-card ul, .section-card ol {
    padding-left: 20px;
    margin-bottom: 16px;
}

.section-card li {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.section-card li strong {
    color: var(--text-main);
}

.alert-box {
    background: rgba(105, 80, 251, 0.06);
    border-left: 3px solid var(--brand-primary);
    padding: 16px;
    border-radius: 0 8px 8px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 20px 0;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 0.9rem;
}

.table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-muted);
}

.table td:first-child {
    font-weight: 700;
    color: var(--text-main);
    width: 45%;
}

/* ===================== FOOTER ===================== */
.site-footer {
    width: 100%;
    background: var(--bg-card);
    border-top: 1px solid var(--border-light);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 28px 30px;
    text-align: center;
}

.site-footer p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
}

.site-footer a {
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 600;
}

/* ===================== MOBILE RESPONSIVE ===================== */
@media (max-width: 768px) {
    /* Show hamburger, hide desktop nav */
    .menu-toggle {
        display: flex;
    }

    .desktop-nav {
        display: none;
    }

    .header-inner {
        padding: 0 18px;
    }

    .app-shell {
        max-width: 100%;
        box-shadow: none;
    }

    .page-wrapper {
        display: block;
    }

    .hero {
        padding: 32px 20px;
    }

    .hero h1 {
        font-size: 1.9rem;
    }

    .btn-group {
        flex-direction: row;
    }

    .btn-full {
        max-width: 100%;
    }

    .content-area {
        padding: 0;
    }

    .section-card {
        padding: 30px 15px;
    }
}
/* Added custom styles for WP content */
.hero-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 40px 30px;
    margin-bottom: 22px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.04);
    text-align: center;
}
.hero-card .hero-img-main {
    width: 100px;
    height: 100px;
    border-radius: 22px;
    object-fit: cover;
    margin-bottom: 22px;
    box-shadow: 0 10px 30px rgba(105, 80, 251, 0.2);
    border: 2px solid rgba(105, 80, 251, 0.2);
}
.hero-card h1 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--brand-primary);
}
.hero-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 15px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.quick-nav-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
@media (max-width: 768px) {
    .app-shell {
        padding: 10px;
    }
    .hero-card {
        padding: 30px 15px;
    }
    .hero-card h1 {
        font-size: 1.9rem;
    }
}

/* FAQ Accordion */
.faq-item {
    border-bottom: 1px solid var(--border-light);
}
.faq-item:last-child {
    border-bottom: none;
}
.faq-btn {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 18px 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s ease;
}
.faq-btn:hover, .faq-btn.active {
    color: var(--brand-primary);
}
.faq-icon {
    font-size: 1.5rem;
    font-weight: 400;
    transition: transform 0.3s ease;
    color: var(--text-muted);
}
.faq-btn.active .faq-icon {
    transform: rotate(45deg);
    color: var(--brand-primary);
}
.faq-content {
    display: none;
    padding-bottom: 18px;
}
.faq-content p {
    margin-bottom: 0;
}
