/* ============================================
   BULLETPROOF AUTOMATIONS TRAINING
   Shared Stylesheet
   ============================================ */

:root {
    --bg-dark: #0a0a0f;
    --bg-card: #111118;
    --bg-elevated: #16161f;
    --bg-input: #0d0d12;
    --gold: #d4af37;
    --gold-light: #e8c84a;
    --gold-dim: #b8941f;
    --gold-glow: rgba(212, 175, 55, 0.15);
    --green: #2d8a4e;
    --green-light: #3cb371;
    --green-glow: rgba(45, 138, 78, 0.15);
    --red: #c0392b;
    --red-light: #e74c3c;
    --red-glow: rgba(192, 57, 43, 0.15);
    --text-primary: #f5f5f7;
    --text-secondary: #a0a0b0;
    --text-muted: #6b6b7b;
    --border: rgba(212, 175, 55, 0.12);
    --border-strong: rgba(212, 175, 55, 0.25);
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.4);
    --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

a { color: var(--gold); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold-light); }

img { max-width: 100%; height: auto; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 3px; }

/* ============================================
   LAYOUT
   ============================================ */

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

section { padding: 72px 0; }

@media (min-width: 768px) { section { padding: 96px 0; } }

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px;
}

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-dim));
    color: var(--bg-dark);
    box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.35);
    color: var(--bg-dark);
}

.btn-secondary {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
}
.btn-secondary:hover {
    background: var(--gold);
    color: var(--bg-dark);
    transform: translateY(-2px);
}

.btn-large { padding: 16px 36px; font-size: 1.05rem; }

.btn-full { width: 100%; }

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ============================================
   CARDS
   ============================================ */

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: var(--transition);
}

.card:hover {
    border-color: var(--border-strong);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.card-featured {
    border-color: var(--gold-dim);
    background: linear-gradient(135deg, var(--bg-card), rgba(212, 175, 55, 0.03));
    position: relative;
}

.card-featured::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--green-light));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* ============================================
   BADGES
   ============================================ */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-gold {
    background: rgba(212, 175, 55, 0.12);
    color: var(--gold);
    border: 1px solid var(--border);
}

.badge-green {
    background: rgba(45, 138, 78, 0.12);
    color: var(--green-light);
    border: 1px solid rgba(45, 138, 78, 0.2);
}

.badge-red {
    background: rgba(192, 57, 43, 0.12);
    color: var(--red-light);
    border: 1px solid rgba(192, 57, 43, 0.2);
}

.badge-blue {
    background: rgba(52, 152, 219, 0.12);
    color: #5dade2;
    border: 1px solid rgba(52, 152, 219, 0.2);
}

/* ============================================
   FORMS
   ============================================ */

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-group label .required { color: var(--red-light); margin-left: 2px; }

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-glow);
}

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

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236b6b7b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.form-group select option { background: var(--bg-dark); color: var(--text-primary); }

.form-group textarea { resize: vertical; min-height: 100px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 640px) {
    .form-row { grid-template-columns: 1fr 1fr; }
}

.radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.radio-option input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--gold);
    cursor: pointer;
}

.radio-option span { color: var(--text-secondary); font-size: 0.95rem; }

.form-success {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.form-success.active { display: block; }

.form-success .icon { font-size: 3.5rem; margin-bottom: 16px; }

.form-success h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--green-light);
}

.form-success p { color: var(--text-secondary); }

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.animate-in {
    opacity: 0;
    animation: fadeInUp 0.7s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   HEADER & NAV
   ============================================ */

.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
}

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

.brand {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--gold), var(--green));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.nav-links {
    display: none;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
}

.nav-links a:hover { color: var(--gold); }

.nav-cta {
    font-size: 0.85rem;
    padding: 10px 20px;
}

.mobile-menu-btn {
    display: flex;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 4px;
}

@media (min-width: 768px) {
    .nav-links { display: flex; }
    .mobile-menu-btn { display: none; }
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 60px; left: 0; right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 20px;
    z-index: 999;
}

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

.mobile-nav a {
    display: block;
    padding: 12px 0;
    color: var(--text-secondary);
    font-weight: 500;
    border-bottom: 1px solid var(--border);
}

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

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
    padding: 40px 0;
    text-align: center;
}

.site-footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.site-footer .accent { color: var(--gold); font-weight: 600; }

/* ============================================
   UTILITIES
   ============================================ */

.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-green { color: var(--green-light); }
.text-red { color: var(--red-light); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.highlight-box {
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-strong);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05), rgba(45, 138, 78, 0.03));
}

.highlight-box-red {
    background: linear-gradient(135deg, rgba(192, 57, 43, 0.08), rgba(212, 175, 55, 0.03));
    border-color: rgba(192, 57, 43, 0.2);
}

/* ============================================
   GRID SYSTEMS
   ============================================ */

.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.grid-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 640px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================
   COMPARISON BLOCK
   ============================================ */

.comparison {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .comparison { grid-template-columns: 1fr 1fr; }
}

.comparison-card {
    padding: 32px;
    border-radius: var(--radius-lg);
    position: relative;
}

.comparison-old {
    background: var(--bg-card);
    border: 2px solid rgba(192, 57, 43, 0.25);
}

.comparison-new {
    background: linear-gradient(135deg, rgba(45, 138, 78, 0.08), rgba(212, 175, 55, 0.04));
    border: 2px solid var(--green);
}

.comparison-label {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
}

.comparison-old .comparison-label { color: var(--red-light); }
.comparison-new .comparison-label { color: var(--green-light); }

.comparison-card p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.comparison-card strong { color: var(--text-primary); }

/* ============================================
   CHECKLIST ITEMS
   ============================================ */

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.checklist-item .check {
    width: 22px;
    height: 22px;
    min-width: 22px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dim));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-dark);
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 2px;
}

.checklist-item p { font-size: 0.95rem; color: var(--text-secondary); }

/* ============================================
   LOADING & STATES
   ============================================ */

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 24px;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transition: all 0.4s ease;
    box-shadow: var(--shadow-md);
    white-space: nowrap;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-error { border-color: var(--red); color: var(--red-light); }
.toast-success { border-color: var(--green); color: var(--green-light); }

/* ============================================
   ADMIN SPECIFIC
   ============================================ */

.admin-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.admin-login-box {
    width: 100%;
    max-width: 400px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
}

.admin-login-box h2 {
    text-align: center;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
}

.stat-card .stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 4px;
}

.stat-card .stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.data-table th,
.data-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--bg-elevated);
}

.data-table td { color: var(--text-secondary); }

.data-table tr:hover td { background: rgba(212, 175, 55, 0.03); }

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-card);
}

.filter-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    align-items: center;
}

.filter-bar input,
.filter-bar select {
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    min-width: 160px;
}

.filter-bar input:focus,
.filter-bar select:focus {
    outline: none;
    border-color: var(--gold);
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 9998;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active { display: flex; }

.modal-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.modal-header h3 { font-size: 1.3rem; }

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px;
}

.modal-close:hover { color: var(--text-primary); }

/* ============================================
   MOBILE ADJUSTMENTS
   ============================================ */

@media (max-width: 640px) {
    .btn-large { padding: 14px 24px; font-size: 1rem; }
    .card { padding: 20px; }
    .comparison-card { padding: 24px; }
    .admin-login-box { padding: 28px 20px; }
    .modal-box { padding: 24px 20px; }
    .data-table th,
    .data-table td { padding: 10px 12px; font-size: 0.85rem; }
}

/* Print */
@media print {
    .site-header, .site-footer, .btn, .mobile-menu-btn { display: none !important; }
    body { background: white; color: black; }
}
