/* AUTOPAL Dark Theme - Shared Styles */

:root {
    --primary: #0066FF;
    --primary-dark: #0052CC;
    --dark: #0a0a0a;
    --gray-900: #111111;
    --gray-800: #1a1a1a;
    --gray-700: #2a2a2a;
    --gray-600: #3a3a3a;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --white: #ffffff;
    --success: #10b981;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--dark);
    color: var(--white);
    line-height: 1.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-800);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    filter: brightness(0) invert(1);
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    color: var(--gray-300);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover, .nav-link.active {
    color: var(--white);
}

.header-cta {
    background: var(--primary);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}

.header-cta:hover {
    background: var(--primary-dark);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--gray-800);
    color: var(--white);
    border: 1px solid var(--gray-700);
}

.btn-secondary:hover {
    background: var(--gray-700);
    border-color: var(--gray-600);
}

/* Cards */
.card {
    background: var(--gray-800);
    border: 1px solid var(--gray-700);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.2s;
}

.card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Form Elements */
input, textarea, select {
    font-family: inherit;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--gray-800);
    border: 2px solid var(--gray-700);
    border-radius: 10px;
    color: var(--white);
    font-size: 15px;
    transition: all 0.2s;
}

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

.form-input::placeholder {
    color: var(--gray-500);
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-300);
    margin-bottom: 8px;
}

/* Footer */
.footer {
    padding: 60px 0 30px;
    border-top: 1px solid var(--gray-800);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    color: var(--white);
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--white);
}

.footer-col p {
    color: var(--gray-400);
    font-size: 14px;
    line-height: 1.6;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid var(--gray-800);
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo img {
    height: 32px;
    filter: brightness(0) invert(1);
}

.footer-legal {
    display: flex;
    gap: 24px;
    align-items: center;
}

.footer-legal a {
    color: var(--gray-500);
    text-decoration: none;
    font-size: 13px;
}

.footer-legal span {
    color: var(--gray-500);
    font-size: 13px;
}

.footer-social {
    display: flex;
    gap: 14px;
    margin-top: 16px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gray-700);
    color: var(--gray-300);
    font-size: 15px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.footer-social a:hover {
    background: var(--primary);
    color: #fff;
}

.footer-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    padding: 24px 0;
    border-top: 1px solid var(--gray-800);
    margin-top: 16px;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--gray-800);
    border: 1px solid var(--gray-700);
    border-radius: 50px;
    padding: 6px 14px;
    font-size: 12px;
    color: var(--gray-400);
}

.trust-badge i {
    color: var(--primary);
    font-size: 12px;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--success);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
}

/* Loading */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-700);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Responsive */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer-legal {
        flex-direction: column;
        gap: 8px;
    }
}
