/* Headless Frontend Styles - Mimicking Tailwind Design System */
@import url('https://fonts.googleapis.com/css2?family=Hind:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

/* CSS Custom Properties matching your Tailwind theme */
:root {
    --background: oklch(1 0 0);
    --foreground: oklch(0.145 0 0);
    --card: oklch(1 0 0);
    --card-foreground: oklch(0.145 0 0);
    --popover: oklch(1 0 0);
    --popover-foreground: oklch(0.145 0 0);
    --primary: #387dbc;
    --primary-foreground: oklch(0.985 0 0);
    --secondary: oklch(0.97 0 0);
    --secondary-foreground: oklch(0.205 0 0);
    --muted: oklch(0.97 0 0);
    --muted-foreground: oklch(0.556 0 0);
    --accent: oklch(0.97 0 0);
    --accent-foreground: oklch(0.205 0 0);
    --destructive: oklch(0.577 0.245 27.325);
    --destructive-foreground: oklch(1 0 0);
    --border: oklch(0.922 0 0);
    --input: oklch(0.75 0 0);
    --ring: oklch(0.708 0 0);
    --radius: 0.625rem;
    --font-hind: 'Hind', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-montserrat: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --background: oklch(0.145 0 0);
        --foreground: oklch(0.985 0 0);
        --card: oklch(0.25 0 0);
        --card-foreground: oklch(0.985 0 0);
        --popover: oklch(0.145 0 0);
        --popover-foreground: oklch(0.985 0 0);
        --primary: oklch(0.40 0.12 248);
        --primary-foreground: oklch(0.985 0 0);
        --secondary: oklch(0.269 0 0);
        --secondary-foreground: oklch(0.985 0 0);
        --muted: oklch(0.269 0 0);
        --muted-foreground: oklch(0.708 0 0);
        --accent: oklch(0.269 0 0);
        --accent-foreground: oklch(0.985 0 0);
        --destructive: oklch(0.396 0.141 25.723);
        --destructive-foreground: oklch(0.985 0 0);
        --border: oklch(0.269 0 0);
        --input: oklch(0.45 0 0);
        --ring: oklch(0.439 0 0);
    }
}

/* Override body styles for headless frontend */
body.home-site {
    overflow-y: auto !important;
    height: auto !important;
    background-color: transparent !important;
    font-family: var(--font-hind);
    color: var(--foreground);
}

/* Hide default WordPress elements on front page */
.home-site #page {
    background: transparent;
}

.home-site .container-main {
    display: none;
}

.headless-container {
    min-height: 100vh;
    background: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: var(--font-hind);
}

.headless-content {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.headless-logo {
    margin-bottom: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.headless-logo-img {
    max-width: 180px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.headless-text-logo {
    font-family: var(--font-montserrat);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.1em;
    margin: 0;
}

.headless-message h1 {
    color: var(--foreground);
    font-size: 2.5rem;
    font-weight: 600;
    font-family: var(--font-montserrat);
    margin-bottom: 20px;
}

.headless-description {
    color: var(--muted-foreground);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.headless-actions {
    margin-bottom: 40px;
}

.headless-main-btn {
    background: var(--primary);
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: all 0.2s ease;
    text-decoration: none;
    color: var(--primary-foreground);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-hind);
}

.headless-main-btn:hover {
    background: var(--primary);
    opacity: 0.9;
    color: var(--primary-foreground);
    text-decoration: none;
    transform: translateY(-1px);
}

.headless-main-btn i {
    font-size: 1rem;
}

/* Driver Login Section */
.headless-login-section {
    background: var(--muted);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 30px;
    border: 1px solid var(--border);
}

.headless-login-content h3 {
    color: var(--foreground);
    font-size: 1.25rem;
    font-weight: 600;
    font-family: var(--font-montserrat);
    margin-bottom: 8px;
}

.headless-login-content p {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    margin-bottom: 16px;
}

.headless-login-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.headless-login-buttons .btn {
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-hind);
}

.headless-login-buttons .btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.headless-login-buttons .btn-primary {
    background: var(--primary);
    color: var(--primary-foreground);
}

.headless-login-buttons .btn-primary:hover {
    background: var(--primary);
    opacity: 0.9;
    color: var(--primary-foreground);
}

.headless-login-buttons .btn-secondary {
    background: var(--secondary);
    color: var(--secondary-foreground);
    border: 1px solid var(--border);
}

.headless-login-buttons .btn-secondary:hover {
    background: var(--secondary);
    opacity: 0.9;
    color: var(--secondary-foreground);
}

/* Admin Section */
.headless-admin-section {
    background: var(--muted);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 30px;
    border: 1px solid var(--border);
}

.headless-admin-content h3 {
    color: var(--foreground);
    font-size: 1.25rem;
    font-weight: 600;
    font-family: var(--font-montserrat);
    margin-bottom: 8px;
}

.headless-admin-content p {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    margin-bottom: 16px;
}

.headless-admin-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.headless-admin-buttons .btn {
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    min-width: 120px;
    justify-content: center;
    font-family: var(--font-hind);
}

.headless-admin-buttons .btn-secondary {
    background: var(--secondary);
    color: var(--secondary-foreground);
}

.headless-admin-buttons .btn-secondary:hover {
    background: var(--secondary);
    opacity: 0.9;
    color: var(--secondary-foreground);
    text-decoration: none;
    transform: translateY(-1px);
}

.headless-admin-buttons .btn-info {
    background: var(--accent);
    color: var(--accent-foreground);
}

.headless-admin-buttons .btn-info:hover {
    background: var(--accent);
    opacity: 0.9;
    color: var(--accent-foreground);
    text-decoration: none;
    transform: translateY(-1px);
}

.headless-admin-buttons .btn-primary {
    background: var(--primary);
    color: var(--primary-foreground);
}

.headless-admin-buttons .btn-primary:hover {
    background: var(--primary);
    opacity: 0.9;
    color: var(--primary-foreground);
    text-decoration: none;
    transform: translateY(-1px);
}

/* Footer */
.headless-footer {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    margin-top: 20px;
}

.headless-footer-content p {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    margin-bottom: 8px;
}

.headless-footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.headless-footer-links a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.75rem;
    transition: color 0.2s ease;
}

.headless-footer-links a:hover {
    color: var(--primary);
    opacity: 0.8;
    text-decoration: underline;
}

.headless-footer-links .separator {
    color: var(--muted-foreground);
    font-size: 0.75rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .headless-container {
        padding: 15px;
    }
    
    .headless-content {
        padding: 30px 20px;
    }
    
    .headless-message h1 {
        font-size: 2rem;
    }
    
    .headless-description {
        font-size: 1rem;
    }
    
    .headless-main-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .headless-login-buttons,
    .headless-admin-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .headless-login-buttons .btn,
    .headless-admin-buttons .btn {
        width: 100%;
        max-width: 200px;
    }
    
    .headless-footer-links {
        flex-direction: column;
        gap: 5px;
    }
    
    .headless-footer-links .separator {
        display: none;
    }
}

@media (max-width: 480px) {
    .headless-content {
        padding: 25px 15px;
    }
    
    .headless-message h1 {
        font-size: 1.8rem;
    }
    
    .headless-logo-img {
        max-width: 140px;
        max-height: 60px;
    }
    
    .headless-text-logo {
        font-size: 2rem;
    }
}

/* Animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.headless-content {
    animation: fadeInUp 0.3s ease-out;
}

/* Additional utility classes to match Tailwind patterns */
/* These are already handled by the CSS custom properties above */

/* Hover effects for interactive elements */
.headless-logo-img:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.headless-text-logo:hover {
    color: var(--primary);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

/* Focus states for accessibility */
.headless-main-btn:focus,
.headless-admin-buttons .btn:focus {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
}

/* Loading state for buttons */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} 