/*
 ===============================================
 HIGHLANDER DESIGN SYSTEM - Forest & Gold Theme
 ===============================================
 Unified visual language for Highlander Publishing
 Platform: Book + Audio Self-Publishing

 Based on: contact.html style
 Theme: Forest green background with gold accents
*/

/* ===== COLOR PALETTE ===== */
:root {
    /* Primary - Forest Green */
    --hl-forest: #1A3A1A;
    --hl-forest-dark: #0D1F0D;
    --hl-forest-light: #031408;
    --hl-forest-mid: #082812;

    /* Gold Accents */
    --hl-gold: #D4A574;
    --hl-gold-light: #E8B86D;
    --hl-sand: #D4C4A8;

    /* Success */
    --hl-success: #38EF7D;
    --hl-success-dark: #11999E;
    --hl-success-start: #38EF7D;
    --hl-success-end: #11999E;

    /* Accent Colors (for product covers) */
    --hl-accent-pink-start: #FF6B9D;
    --hl-accent-pink-end: #C44569;
    --hl-accent-orange-start: #FFB347;
    --hl-accent-orange-end: #FF8C42;
    --hl-accent-purple-start: #A29BFE;
    --hl-accent-purple-end: #6C5CE7;
    --hl-accent-blue-start: #74B9FF;
    --hl-accent-blue-end: #0984E3;

    /* Error */
    --hl-error: #ff6b6b;
    --hl-error-dark: #e74c3c;

    /* Text */
    --hl-text-primary: var(--hl-sand);
    --hl-text-secondary: rgba(212, 196, 168, 0.8);
    --hl-text-muted: rgba(212, 196, 168, 0.5);

    /* Backgrounds */
    --hl-bg-primary: linear-gradient(180deg, #031408 0%, #082812 50%, #031408 100%);
    --hl-bg-dark: linear-gradient(180deg, #031408 0%, #082812 50%, #031408 100%);
    --hl-bg-card: rgba(26, 58, 26, 0.6);
    --hl-bg-card-hover: rgba(26, 58, 26, 0.8);
    --hl-bg-input: rgba(3, 20, 8, 0.8);
    --hl-bg-input-focus: rgba(3, 20, 8, 0.9);

    /* Borders */
    --hl-border: rgba(212, 165, 116, 0.2);
    --hl-border-focus: rgba(212, 165, 116, 0.5);
    --hl-border-muted: rgba(212, 165, 116, 0.15);

    /* Shadows */
    --hl-shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.2);
    --hl-shadow-md: 0 6px 20px rgba(0, 0, 0, 0.3);
    --hl-shadow-lg: 0 15px 35px rgba(0, 0, 0, 0.4);
    --hl-shadow-gold: 0 10px 30px rgba(212, 165, 116, 0.3);

    /* Border Radius */
    --hl-radius-sm: 8px;
    --hl-radius-md: 10px;
    --hl-radius-lg: 12px;
    --hl-radius-xl: 16px;
    --hl-radius-2xl: 20px;

    /* Transitions */
    --hl-transition: all 0.3s ease;
}

/* ===== GLOBAL STYLES ===== */
body.hl-theme,
.hl-body {
    background: var(--hl-bg-primary);
    color: var(--hl-text-primary);
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
}

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

/* ===== TYPOGRAPHY ===== */
.font-cinzel,
.hl-font-cinzel {
    font-family: 'Cinzel', serif;
}

.text-gold,
.hl-text-gold {
    color: var(--hl-gold);
}

.text-center,
.hl-text-center {
    text-align: center;
}

.text-muted,
.hl-text-muted {
    opacity: 0.7;
}

/* ===== NAVBAR ===== */
.hl-navbar {
    background: rgba(3, 20, 8, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--hl-border-muted);
    padding: 1rem 0;
}

.hl-navbar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hl-navbar-brand {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--hl-gold);
    text-decoration: none;
    font-weight: 700;
}

.hl-navbar-brand:hover {
    color: var(--hl-gold-light);
    text-decoration: none;
}

.hl-nav-link {
    color: var(--hl-text-primary);
    transition: color 0.3s ease;
    text-decoration: none;
    margin-left: 1.5rem;
}

.hl-nav-link:hover {
    color: var(--hl-gold);
    text-decoration: none;
}

/* ===== CONTAINERS ===== */
.hl-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hl-container-lg {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hl-container-xl {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== CARDS ===== */
.hl-card {
    background: var(--hl-bg-card);
    border: 1px solid var(--hl-border);
    border-radius: var(--hl-radius-lg);
    padding: 2.5rem;
}

.hl-card-sm { padding: 1.5rem; }
.hl-card-lg { padding: 3rem; }

/* Form Box - centered card */
.hl-form-box {
    background: var(--hl-bg-card);
    border: 1px solid var(--hl-border);
    border-radius: var(--hl-radius-lg);
    padding: 2.5rem;
    margin: 3rem auto;
    max-width: 500px;
}

.hl-form-box-lg { max-width: 600px; }
.hl-form-box-xl { max-width: 800px; }

/* ===== PAGE HEADER ===== */
.hl-page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.hl-page-header h1 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: var(--hl-gold);
    margin-bottom: 0.5rem;
}

.hl-page-header p {
    opacity: 0.8;
}

/* ===== FORMS ===== */
.hl-form-group {
    margin-bottom: 1.5rem;
}

.hl-form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--hl-gold);
    font-weight: 500;
    font-size: 0.95rem;
}

.hl-form-control,
.hl-form-input,
.form-control.hl-input,
input.hl-input,
select.hl-input,
textarea.hl-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--hl-bg-input);
    border: 1px solid var(--hl-border);
    border-radius: var(--hl-radius-sm);
    color: var(--hl-text-primary);
    font-size: 1rem;
    transition: var(--hl-transition);
}

.hl-form-control:focus,
.hl-form-input:focus,
input.hl-input:focus,
select.hl-input:focus,
textarea.hl-input:focus {
    outline: none;
    border-color: var(--hl-gold);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
    background: var(--hl-bg-input-focus);
}

.hl-form-control::placeholder,
.hl-form-input::placeholder,
input.hl-input::placeholder,
textarea.hl-input::placeholder {
    color: var(--hl-text-muted);
}

.hl-form-control:disabled,
.hl-form-input:disabled,
input.hl-input:disabled,
select.hl-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

select.hl-form-control,
select.hl-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23D4A574' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Code Input */
.hl-code-input {
    letter-spacing: 6px;
    font-size: 28px;
    text-align: center;
    font-family: monospace;
    font-weight: bold;
}

/* ===== BUTTONS ===== */
.hl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: var(--hl-radius-sm);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: var(--hl-transition);
}

.hl-btn-primary {
    background: linear-gradient(135deg, var(--hl-gold) 0%, var(--hl-gold-light) 50%, var(--hl-gold) 100%);
    color: var(--hl-forest-dark);
    font-family: 'Cinzel', serif;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    width: 100%;
}

.hl-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--hl-shadow-gold);
    color: var(--hl-forest-dark);
    text-decoration: none;
}

.hl-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.hl-btn-secondary {
    background: rgba(212, 165, 116, 0.15);
    border: 1px solid var(--hl-border);
    color: var(--hl-gold);
    width: 100%;
}

.hl-btn-secondary:hover {
    background: rgba(212, 165, 116, 0.25);
    color: var(--hl-gold);
    text-decoration: none;
}

.hl-btn-success {
    background: linear-gradient(135deg, var(--hl-success-start) 0%, var(--hl-success-end) 100%);
    color: var(--hl-forest-dark);
    font-weight: 600;
    width: 100%;
}

.hl-btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 239, 125, 0.4);
    color: var(--hl-forest-dark);
    text-decoration: none;
}

.hl-btn-outline {
    background: transparent;
    border: 1px solid var(--hl-border);
    color: var(--hl-text-primary);
}

.hl-btn-outline:hover {
    background: var(--hl-bg-card);
    color: var(--hl-text-primary);
    text-decoration: none;
}

.hl-btn-link {
    background: none;
    border: none;
    color: var(--hl-text-primary);
    text-decoration: none;
}

.hl-btn-link:hover {
    color: var(--hl-gold);
    text-decoration: none;
}

/* Wallet Button */
.hl-btn-wallet {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #627EEA 0%, #4263EB 100%);
    color: white;
    border: none;
    border-radius: var(--hl-radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--hl-transition);
}

.hl-btn-wallet:hover {
    transform: translateY(-2px);
}

.hl-btn-wallet.connected {
    background: linear-gradient(135deg, var(--hl-gold), var(--hl-gold-light));
    color: var(--hl-forest-dark);
}

/* ===== ALERTS ===== */
.hl-alert {
    padding: 1rem;
    border-radius: var(--hl-radius-sm);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hl-alert-success {
    background: rgba(56, 239, 125, 0.1);
    border: 1px solid var(--hl-success);
    color: var(--hl-success);
}

.hl-alert-error {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid var(--hl-error);
    color: var(--hl-error);
}

.hl-alert-info {
    background: rgba(212, 165, 116, 0.1);
    border: 1px solid var(--hl-border);
    color: var(--hl-gold);
}

.hl-alert-warning {
    background: rgba(232, 184, 109, 0.1);
    border: 1px solid var(--hl-gold-light);
    color: var(--hl-gold-light);
}

/* Success/Error Box */
.hl-success-box,
.hl-error-box {
    padding: 1rem;
    border-radius: var(--hl-radius-sm);
    margin-bottom: 1.5rem;
    text-align: center;
}

.hl-success-box {
    background: rgba(56, 239, 125, 0.1);
    border: 1px solid var(--hl-success);
    color: var(--hl-success);
}

.hl-error-box {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid var(--hl-error);
    color: var(--hl-error);
}

/* ===== FEATURE CARDS ===== */
.hl-feature-card {
    background: var(--hl-bg-card);
    border: 1px solid var(--hl-border-muted);
    border-radius: var(--hl-radius-lg);
    padding: 1.5rem;
    text-align: center;
    transition: var(--hl-transition);
}

.hl-feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--hl-border);
    box-shadow: var(--hl-shadow-md);
}

.hl-feature-icon {
    font-size: 2rem;
    color: var(--hl-gold);
    margin-bottom: 0.75rem;
}

/* ===== TRUST BADGE ===== */
.hl-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(17, 153, 158, 0.2);
    border: 1px solid rgba(17, 153, 158, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* ===== WALLET INFO ===== */
.hl-wallet-info {
    display: none;
    padding: 1rem;
    background: rgba(212, 165, 116, 0.1);
    border: 1px solid var(--hl-border);
    border-radius: var(--hl-radius-sm);
    margin-bottom: 1rem;
}

.hl-wallet-info.show { display: block; }

/* ===== TOKEN DISPLAY ===== */
.hl-token-display {
    display: none;
    background: var(--hl-bg-input);
    border: 3px dashed var(--hl-gold);
    border-radius: var(--hl-radius-sm);
    padding: 1.5rem;
    margin-top: 1.5rem;
    text-align: center;
}

.hl-token-display.show { display: block; }

.hl-token-value {
    font-family: monospace;
    font-size: 1.1rem;
    word-break: break-all;
    background: rgba(212, 165, 116, 0.1);
    padding: 1rem;
    border-radius: 4px;
    color: var(--hl-gold);
    font-weight: bold;
}

.hl-token-label {
    font-size: 0.85rem;
    color: var(--hl-text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== STEPS LIST ===== */
.hl-steps-list {
    background: var(--hl-bg-card);
    border-radius: var(--hl-radius-sm);
    padding: 1.25rem 1.25rem 1.25rem 2rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.hl-steps-list ol {
    margin: 0;
    padding-left: 1.25rem;
}

.hl-steps-list li {
    margin-bottom: 0.5rem;
    color: var(--hl-text-secondary);
}

/* ===== FOOTER ===== */
.hl-footer {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--hl-border-muted);
    padding: 1.5rem 0;
    text-align: center;
    margin-top: 3rem;
}

.hl-footer .font-cinzel,
.hl-footer .hl-font-cinzel {
    color: var(--hl-gold);
    margin-bottom: 0.25rem;
}

.hl-footer small {
    color: var(--hl-text-primary);
    opacity: 0.7;
}

.hl-footer a {
    color: var(--hl-gold);
    text-decoration: none;
}

.hl-footer a:hover {
    text-decoration: underline;
}

/* ===== ANIMATIONS ===== */
@keyframes hl-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.hl-pulse { animation: hl-pulse 2s infinite; }

/* ===== UTILITIES ===== */
.hl-hidden { display: none !important; }
.hl-block { display: block; }
.hl-flex { display: flex; }
.hl-inline-flex { display: inline-flex; }

.hl-items-center { align-items: center; }
.hl-justify-center { justify-content: center; }
.hl-justify-between { justify-content: space-between; }

.hl-gap-1 { gap: 0.25rem; }
.hl-gap-2 { gap: 0.5rem; }
.hl-gap-3 { gap: 0.75rem; }
.hl-gap-4 { gap: 1rem; }

.hl-mt-0 { margin-top: 0; }
.hl-mt-1 { margin-top: 0.25rem; }
.hl-mt-2 { margin-top: 0.5rem; }
.hl-mt-3 { margin-top: 0.75rem; }
.hl-mt-4 { margin-top: 1rem; }
.hl-mt-5 { margin-top: 1.5rem; }
.hl-mt-6 { margin-top: 2rem; }
.hl-mt-7 { margin-top: 2.5rem; }
.hl-mt-8 { margin-top: 3rem; }

.hl-mb-0 { margin-bottom: 0; }
.hl-mb-1 { margin-bottom: 0.25rem; }
.hl-mb-2 { margin-bottom: 0.5rem; }
.hl-mb-3 { margin-bottom: 0.75rem; }
.hl-mb-4 { margin-bottom: 1rem; }
.hl-mb-5 { margin-bottom: 1.5rem; }
.hl-mb-6 { margin-bottom: 2rem; }
.hl-mb-7 { margin-bottom: 2.5rem; }
.hl-mb-8 { margin-bottom: 3rem; }

.hl-p-1 { padding: 0.25rem; }
.hl-p-2 { padding: 0.5rem; }
.hl-p-3 { padding: 0.75rem; }
.hl-p-4 { padding: 1rem; }
.hl-p-5 { padding: 1.5rem; }
.hl-p-6 { padding: 2rem; }

.hl-w-full { width: 100%; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hl-form-box,
    .hl-card {
        padding: 1.5rem;
        margin: 2rem 1rem;
    }

    .hl-navbar .container {
        flex-direction: column;
        gap: 1rem;
    }

    .hl-nav-link { margin: 0 0.75rem; }
}

/* ===== HELPERS FOR BOOTSTRAP MIGRATION ===== */
/* These help when migrating from Bootstrap */
.card { background: var(--hl-bg-card); border: 1px solid var(--hl-border); border-radius: var(--hl-radius-lg); }
.card-body { padding: 1.5rem; }
.form-label { display: block; margin-bottom: 0.5rem; color: var(--hl-gold); font-weight: 500; }
.shadow-lg { box-shadow: var(--hl-shadow-lg); }
.text-white { color: var(--hl-text-primary) !important; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-3 { margin-top: 1rem; }
.me-2 { margin-right: 0.5rem; }
.ms-auto { margin-left: auto; }
.nav-link { color: var(--hl-text-primary) !important; }
.nav-link:hover { color: var(--hl-gold) !important; }
.navbar { background: var(--hl-forest-dark) !important; }
.product-card h5 { color: var(--hl-text-primary) !important; }
.product-card p { color: var(--hl-text-secondary) !important; }
