/* UmatHub Desktop Styling System - Blend of Option 1 (Green/Gold) and Poppins */

:root {
    --primary: #d90429;
    --primary-light: #fff0f1;
    --primary-dark: #8d0018;
    --secondary: #ffffff;
    --secondary-light: #f8f9fa;
    --secondary-dark: #e9ecef;
    --bg: #ffffff;
    --card-bg: #ffffff;
    --text: #111111;
    --text-muted: #6c757d;
    --border: #e9ecef;
    --border-focus: #d90429;
    --success: #2e7d32;
    --font-sans: 'Poppins', sans-serif;
    
    /* Font resizing tokens */
    --step-0: 1rem;
    --step-1: 1.125rem;
    --step-2: 1.25rem;
    --step-3: 1.5rem;
    --step-4: 2rem;
    --step-5: 2.75rem;
}

/* Accessibility Zoom Levels */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

html.zoom-small {
    font-size: 14px;
}

html.zoom-large {
    font-size: 19px;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* 🔎 Accessibility Resizer Bar */
.accessibility-bar {
    background-color: #2c3531;
    color: #ffffff;
    padding: 0.5rem 0;
    font-size: 0.85rem;
}

.access-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.access-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.zoom-btn {
    background-color: #3e4b46;
    border: none;
    color: #ffffff;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.zoom-btn:hover {
    background-color: var(--primary-light);
}

.zoom-btn.active {
    background-color: var(--primary);
    color: #ffffff;
}

.preview-mode-switch a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.preview-mode-switch a:hover {
    text-decoration: underline;
}

.preview-badge {
    background-color: rgba(212, 163, 115, 0.15);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

/* 🕌 Header Navigation */
.main-header {
    background-color: var(--card-bg);
    border-bottom: 2px solid var(--border);
    padding: 1.25rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(44, 53, 49, 0.03);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--primary);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary-light);
    border-radius: 10px;
    padding: 8px;
    color: var(--primary);
    border: 1px solid var(--border);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo-text span {
    color: var(--text);
}

.desktop-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.desktop-nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.desktop-nav a:hover, .desktop-nav a.active {
    color: var(--primary);
}

.btn-wa-nav {
    display: inline-block;
    background-color: #25d366;
    color: #ffffff !important;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-wa-nav:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.2);
}

/* 🏡 Hero Section */
.hero-section {
    background-image: linear-gradient(rgba(15, 15, 15, 0.75), rgba(15, 15, 15, 0.75)), url('../images/hero_banner.jpg');
    background-size: cover;
    background-position: center;
    color: #ffffff;
    padding: 5.5rem 0;
    border-bottom: 6px solid var(--secondary);
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: "";
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    background-color: rgba(212, 163, 115, 0.05);
    border-radius: 50%;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}

.hero-text-content {
    max-width: 650px;
}

.hero-tag {
    display: inline-block;
    background-color: rgba(212, 163, 115, 0.2);
    border: 1px solid var(--secondary);
    color: var(--secondary);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-title {
    font-size: var(--step-5);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: var(--step-1);
    opacity: 0.9;
    margin-bottom: 2rem;
}

.hero-stats-quick {
    display: flex;
    gap: 2rem;
}

.hero-stat-item {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 1.25rem 2rem;
    flex: 1;
    text-align: center;
}

.hero-stat-num {
    font-size: var(--step-3);
    font-weight: 700;
    color: var(--secondary);
}

.hero-stat-label {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* 🤝 Campaigns Grid */
.campaigns-section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title {
    font-size: var(--step-4);
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: var(--step-1);
    max-width: 600px;
    margin: 0 auto;
}

.campaigns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 2.5rem;
}

.campaign-card {
    background-color: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.campaign-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(27, 77, 62, 0.06);
    border-color: var(--primary);
}

.campaign-image-container {
    height: 200px;
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    border-bottom: 2px solid var(--border);
}

.campaign-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.campaign-title {
    font-size: var(--step-1);
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.campaign-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.progress-bar-container {
    margin-bottom: 1rem;
}

.progress-bar-bg {
    height: 8px;
    background-color: var(--border);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--primary);
    border-radius: 10px;
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.stat-collected {
    font-weight: 700;
    color: var(--primary);
}

.stat-percent {
    font-weight: 700;
    color: var(--secondary-dark);
}

.campaign-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 1.25rem;
    margin-top: auto;
}

.campaign-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.btn {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-secondary-outline {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-secondary-outline:hover {
    background-color: var(--primary-light);
}

/* 📄 Campaign Detail Page */
.detail-section {
    padding: 4rem 0;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 3rem;
}

.detail-main-card {
    background-color: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
}

.detail-title {
    font-size: var(--step-4);
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.detail-image-mock {
    height: 350px;
    background-color: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    margin-bottom: 2rem;
    border: 2px solid var(--border);
}

.detail-story h3 {
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-size: var(--step-1);
}

.detail-story p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    text-indent: 2rem;
}

/* Sidebar Donasi */
.detail-sidebar-card {
    background-color: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    position: sticky;
    top: 100px;
    box-shadow: 0 8px 24px rgba(27, 77, 62, 0.03);
}

.sidebar-title {
    font-size: 1.15rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.btn-donate-now {
    width: 100%;
    font-size: var(--step-1);
    padding: 1rem;
    margin: 1.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    background-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(217, 4, 41, 0.3);
}

.btn-donate-now:hover {
    background-color: var(--primary-dark);
}

.donors-list {
    margin-top: 2rem;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
}

.donors-list h4 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.donor-item {
    background-color: var(--secondary-light);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    margin-bottom: 0.75rem;
    border-left: 4px solid var(--primary);
}

.donor-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 700;
}

.donor-amount {
    color: var(--primary);
}

.donor-notes {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 0.25rem;
}

/* 💳 Checkout Stepped Form */
.checkout-section {
    padding: 4rem 0;
}

.checkout-card {
    background-color: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 3rem;
    max-width: 750px;
    margin: 0 auto;
}

.checkout-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
}

.checkout-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 3px;
    background-color: var(--border);
    z-index: 1;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    background-color: var(--card-bg);
    padding: 0 10px;
}

.step-num {
    width: 40px;
    height: 40px;
    background-color: var(--border);
    color: var(--text-muted);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.step-indicator.active .step-num {
    background-color: var(--primary);
    color: #ffffff;
}

.step-indicator.done .step-num {
    background-color: var(--success);
    color: #ffffff;
}

.step-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

.step-indicator.active .step-label {
    color: var(--primary);
}

/* Forms and inputs */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.form-input {
    width: 100%;
    padding: 0.85rem 1.2rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text);
    transition: border-color 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--border-focus);
}

/* Nominal Quick Selections */
.nominal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 0.5rem;
}

.nominal-btn {
    background-color: var(--bg);
    border: 2px solid var(--border);
    padding: 0.85rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
    color: var(--primary);
    text-align: center;
    transition: all 0.2s ease;
}

.nominal-btn:hover {
    border-color: var(--primary);
    background-color: var(--primary-light);
}

.nominal-btn.active {
    border-color: var(--primary);
    background-color: var(--primary);
    color: #ffffff;
}

.bank-info-card {
    background-color: var(--secondary-light);
    border: 2px dashed var(--primary);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    position: relative;
}

.bank-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.bank-account {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
}

.btn-copy {
    background-color: var(--primary);
    color: #ffffff;
    border: none;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
}

.btn-copy:hover {
    background-color: var(--primary-dark);
}

/* Stepped views toggles */
.form-step-panel {
    display: none;
}

.form-step-panel.active {
    display: block;
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2.5rem;
}

/* 🏆 Success View */
.success-card {
    background-color: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 3.5rem;
    max-width: 650px;
    margin: 0 auto;
    text-align: center;
}

.success-icon {
    font-size: 5rem;
    line-height: 1;
    margin-bottom: 1.5rem;
}

.success-title {
    color: var(--success);
    font-weight: 800;
    font-size: var(--step-4);
    margin-bottom: 1rem;
}

.success-message {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
}

.prayer-box {
    background-color: var(--primary-light);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    color: var(--primary-dark);
    font-style: italic;
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
    position: relative;
}

.prayer-box::before {
    content: "📖";
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-style: normal;
}

/* Footer layout */
.main-footer {
    background-color: var(--primary-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 3rem 0;
    border-top: 4px solid var(--secondary);
    margin-top: auto;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand h2 {
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.footer-info {
    text-align: right;
    font-size: 0.85rem;
}
