/*
Theme Name: AR Wallet Theme
Description: Custom theme for AR Wallet — Professional, Fast, Mobile-First
Author: Custom
Version: 2.0
*/

/* =============================================
   CSS VARIABLES
   ============================================= */
:root {
    --brand-main: #10b981;
    --brand-main-rgb: 16, 185, 129;
    --brand-accent: #f59e0b;
    --brand-golden: #eab308;
    --brand-golden-dark: #ca8a04;
    --brand-golden-light: #fef9c3;
    --brand-light: #ecfdf5;
    --brand-dark: #047857;
    --text-dark: #111827;
    --text-muted: #4b5563;
    --text-light: #9ca3af;
    --surface-bg: #f8fafc;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --corner-radius: 12px;
    --corner-radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.07), 0 8px 10px -6px rgba(0,0,0,0.04);
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--surface-bg);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; }
a { text-decoration: none; }

/* =============================================
   APP WRAPPER
   ============================================= */
.ar-app-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* =============================================
   NAVIGATION
   ============================================= */
.ar-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 5%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow var(--transition-normal);
}

.ar-brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.ar-brand-link img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: var(--shadow-sm);
}
.ar-brand-text {
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

/* Desktop Menu */
.ar-desktop-menu { display: none; gap: 8px; }
.ar-desktop-menu a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 6px 14px;
    border-radius: 8px;
    transition: all var(--transition-fast);
}
.ar-desktop-menu a:hover {
    color: var(--brand-dark);
    background: var(--brand-light);
}

/* Mobile Hamburger */
.ar-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background var(--transition-fast);
}
.ar-menu-toggle:hover { background: var(--surface-bg); }
.ar-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 4px;
    transition: var(--transition-normal);
}

/* Mobile Dropdown */
.ar-dropdown-menu {
    display: none;
    position: absolute;
    top: 65px;
    right: 5%;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--corner-radius);
    width: 220px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    z-index: 99;
}
.ar-dropdown-menu.is-active {
    display: block;
    animation: slideDown 0.2s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.ar-dropdown-menu a {
    display: block;
    padding: 13px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}
.ar-dropdown-menu a:last-child { border-bottom: none; }
.ar-dropdown-menu a:hover {
    background: var(--brand-light);
    color: var(--brand-dark);
    padding-left: 24px;
}

/* =============================================
   SCROLL CONTAINER
   ============================================= */
.ar-scroll-view {
    flex: 1;
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding: 0 16px 60px;
    display: flex;
    flex-direction: column;
}

/* =============================================
   HERO SECTION
   ============================================= */
.ar-hero-block {
    padding: 48px 28px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: linear-gradient(160deg, #ffffff 0%, #f0fdf4 50%, #ecfdf5 100%);
    border-radius: var(--corner-radius-lg);
    margin: 20px 0;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}
.ar-hero-block::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(var(--brand-main-rgb), 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.ar-hero-img {
    width: 88px;
    height: 88px;
    border-radius: 22px;
    margin-bottom: 20px;
    box-shadow: 0 8px 30px rgba(var(--brand-main-rgb), 0.18);
    object-fit: cover;
    position: relative;
}
.ar-hero-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
    letter-spacing: -0.03em;
    line-height: 1.2;
}
.ar-hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 560px;
}

/* ACTION BUTTONS */
.ar-action-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 460px;
    margin-bottom: 12px;
}
.ar-btn {
    flex: 1;
    min-width: 180px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 20px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
    letter-spacing: -0.01em;
}
.ar-btn-filled {
    background: linear-gradient(135deg, var(--brand-golden) 0%, var(--brand-golden-dark) 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(234, 179, 8, 0.3);
}
.ar-btn-filled:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(234, 179, 8, 0.4);
}
.ar-btn-outlined {
    background: var(--card-bg);
    color: var(--brand-golden-dark);
    border: 2px solid var(--brand-golden);
}
.ar-btn-outlined:hover {
    background: var(--brand-golden-light);
    transform: translateY(-1px);
}
.ar-btn-social {
    background: linear-gradient(135deg, #0088CC 0%, #0077b5 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 136, 204, 0.25);
}
.ar-btn-social:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.35);
}

/* =============================================
   CONTENT CARDS
   ============================================= */
.ar-content-card {
    margin: 16px 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--corner-radius-lg);
    padding: 32px 36px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-normal);
}
.ar-content-card:hover {
    box-shadow: var(--shadow-md);
}

.ar-heading-primary {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 3px solid var(--brand-golden);
    letter-spacing: -0.02em;
    line-height: 1.3;
}
.ar-heading-secondary {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 22px 0 10px;
    letter-spacing: -0.01em;
}
.ar-heading-tertiary {
    font-size: 1rem;
    font-weight: 700;
    color: var(--brand-accent);
    margin: 14px 0 8px;
}
.ar-paragraph {
    font-size: 0.97rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 14px;
}

/* LISTS */
.ar-list-group, .ar-list-ordered {
    padding-left: 20px;
    margin-top: 10px;
    margin-bottom: 16px;
}
.ar-list-ordered {
    counter-reset: custom-counter;
    list-style: none;
}
.ar-list-item {
    font-size: 0.97rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 10px;
}
.ar-list-ordered .ar-list-item {
    position: relative;
    counter-increment: custom-counter;
    padding-left: 6px;
}
.ar-list-ordered .ar-list-item::before {
    content: counter(custom-counter) ".";
    position: absolute;
    left: -22px;
    font-weight: 800;
    color: var(--brand-main);
}

/* LINKS */
.ar-hyperlink {
    color: var(--brand-dark);
    text-decoration: none;
    font-weight: 700;
    border-bottom: 1px dashed var(--brand-dark);
    transition: all var(--transition-fast);
}
.ar-hyperlink:hover {
    color: var(--brand-main);
    border-bottom-style: solid;
}

/* IMAGES */
.ar-image-box {
    width: 100%;
    max-width: 480px;
    border-radius: var(--corner-radius);
    margin: 18px auto;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    display: block;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}
.ar-image-box:hover {
    transform: scale(1.01);
    box-shadow: var(--shadow-lg);
}

/* =============================================
   TABLE OF CONTENTS
   ============================================= */
.ar-toc-wrap {
    list-style: none;
    counter-reset: ar-toc;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 10px;
}
.ar-toc-item {
    counter-increment: ar-toc;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.92rem;
    background: var(--surface-bg);
    transition: all var(--transition-fast);
    cursor: pointer;
}
.ar-toc-item:hover {
    border-color: rgba(var(--brand-main-rgb), 0.3);
    background: var(--brand-light);
    transform: translateX(4px);
}
.ar-toc-item::before {
    content: counter(ar-toc);
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--brand-main) 0%, var(--brand-dark) 100%);
    color: #ffffff;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: 0.82rem;
    font-weight: 800;
    flex-shrink: 0;
}
.ar-toc-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    width: 100%;
}

/* =============================================
   TABLES
   ============================================= */
.ar-table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0;
    font-size: 0.92rem;
    border-radius: var(--corner-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}
.ar-table th {
    background: linear-gradient(135deg, var(--brand-main) 0%, var(--brand-dark) 100%);
    color: #ffffff;
    padding: 13px 16px;
    text-align: left;
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.02em;
}
.ar-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
    font-weight: 500;
}
.ar-table tr:nth-child(even) td { background: var(--surface-bg); }
.ar-table tr:hover td { background: var(--brand-light); }

/* =============================================
   ALERTS
   ============================================= */
.ar-alert {
    background: var(--brand-light);
    border-left: 4px solid var(--brand-main);
    padding: 14px 18px;
    border-radius: 0 10px 10px 0;
    font-size: 0.93rem;
    color: var(--text-dark);
    margin: 18px 0;
    line-height: 1.7;
    font-weight: 500;
}
.ar-alert-danger {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    padding: 14px 18px;
    border-radius: 0 10px 10px 0;
    font-size: 0.93rem;
    color: #991b1b;
    margin: 18px 0;
    line-height: 1.7;
    font-weight: 500;
}

/* =============================================
   CHIPS
   ============================================= */
.ar-chip-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0;
}
.ar-chip {
    background: linear-gradient(135deg, var(--brand-light) 0%, #d1fae5 100%);
    color: var(--brand-dark);
    border: 1px solid rgba(var(--brand-main-rgb), 0.2);
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all var(--transition-fast);
}
.ar-chip:hover {
    background: var(--brand-main);
    color: #ffffff;
    border-color: var(--brand-main);
}

/* =============================================
   FAQ SECTION
   ============================================= */
.ar-faq-container {
    border: 1px solid var(--border-color);
    border-radius: var(--corner-radius);
    overflow: hidden;
    margin-bottom: 8px;
    transition: box-shadow var(--transition-fast);
}
.ar-faq-container:hover {
    box-shadow: var(--shadow-sm);
}
.ar-faq-btn {
    width: 100%;
    text-align: left;
    padding: 16px 18px;
    background: var(--surface-bg);
    border: none;
    border-bottom: 1px solid var(--border-color);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-fast);
}
.ar-faq-btn:hover { background: var(--brand-light); }
.ar-faq-btn:last-child { border-bottom: none; }
.ar-faq-btn i {
    color: var(--brand-main);
    transition: transform 0.3s ease;
    font-size: 0.85rem;
}
.ar-faq-btn.active { background: var(--brand-light); }
.ar-faq-btn.active i { transform: rotate(180deg); }
.ar-faq-content {
    display: none;
    padding: 18px 20px;
    font-size: 0.93rem;
    color: var(--text-muted);
    line-height: 1.75;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
}

/* =============================================
   FOOTER
   ============================================= */
.ar-footer-wrap {
    background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
    border-top: 1px solid #1e293b;
    text-align: center;
    padding: 36px 20px 32px;
    margin-top: auto;
}
.ar-disclaimer-footer {
    font-size: 0.83rem;
    color: #991b1b;
    background: rgba(254, 226, 226, 0.9);
    padding: 16px 18px;
    border-radius: 10px;
    margin: 0 auto 28px;
    max-width: 860px;
    text-align: left;
    line-height: 1.65;
    border: 1px solid #fca5a5;
}
.ar-footer-links {
    margin-bottom: 18px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}
.ar-footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 4px 12px;
    border-radius: 6px;
    transition: all var(--transition-fast);
}
.ar-footer-links a:hover {
    color: #ffffff;
    background: rgba(255,255,255,0.06);
}
.ar-copyright {
    font-size: 0.82rem;
    color: #475569;
}

/* =============================================
   RESPONSIVE — DESKTOP (768px+)
   ============================================= */
@media (min-width: 768px) {
    .ar-desktop-menu { display: flex; }
    .ar-menu-toggle { display: none; }
    .ar-dropdown-menu { display: none !important; }
    .ar-image-box { max-width: 520px; }

    .ar-content-card { padding: 36px 42px; }
    .ar-hero-block { padding: 56px 36px 48px; }
    .ar-hero-title { font-size: 2.3rem; }
}

/* =============================================
   RESPONSIVE — MOBILE (< 768px)
   ============================================= */
@media (max-width: 767px) {
    .ar-content-card {
        padding: 22px 18px;
        margin: 10px 0;
        border-radius: 14px;
    }
    .ar-hero-block {
        padding: 36px 18px 32px;
        margin: 14px 0;
        border-radius: 14px;
    }
    .ar-hero-title { font-size: 1.65rem; }
    .ar-hero-subtitle { font-size: 0.97rem; margin-bottom: 22px; }
    .ar-toc-wrap { grid-template-columns: 1fr; gap: 8px; }
    .ar-heading-primary { font-size: 1.2rem; padding-bottom: 12px; margin-bottom: 14px; }
    .ar-heading-secondary { font-size: 1rem; margin: 18px 0 8px; }
    .ar-paragraph { font-size: 0.93rem; margin-bottom: 12px; }
    .ar-list-item { font-size: 0.93rem; }
    .ar-btn { min-width: 140px; padding: 12px 16px; font-size: 0.9rem; }
    .ar-action-row { gap: 10px; }
    .ar-table { font-size: 0.85rem; }
    .ar-table th { padding: 10px 12px; font-size: 0.82rem; }
    .ar-table td { padding: 10px 12px; }
    .ar-footer-links { gap: 4px; }
    .ar-footer-links a { font-size: 0.82rem; padding: 4px 8px; }
    .ar-scroll-view { padding: 0 12px 40px; }
    .ar-navbar { padding: 10px 4%; }
}

/* =============================================
   RESPONSIVE — SMALL MOBILE (< 400px)
   ============================================= */
@media (max-width: 400px) {
    .ar-hero-title { font-size: 1.4rem; }
    .ar-hero-subtitle { font-size: 0.9rem; }
    .ar-btn { min-width: 120px; font-size: 0.85rem; padding: 11px 14px; }
    .ar-content-card { padding: 18px 14px; }
    .ar-heading-primary { font-size: 1.1rem; }
}

/* =============================================
   PRINT STYLES
   ============================================= */
@media print {
    .ar-navbar, .ar-footer-wrap, .ar-menu-toggle, .ar-dropdown-menu { display: none !important; }
    .ar-content-card { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; }
    .ar-hero-block { background: #fff; }
    body { background: #fff; }
}
