/* Vaelara Call Redirector Styles */

:root {
    --primary: #1a73e8;
    --primary-dark: #0d47a1;
    --primary-light: #4285f4;
    --logo-bg: #1E2EFF;
    --secondary: #34a853;
    --accent: #fbbc05;
    --error: #dc2626;
    --text: #202124;
    --text-light: #5f6368;
    --text-lighter: #80868b;
    --background: #ffffff;
    --background-light: #f8f9fa;
    --background-alt: #e8f0fe;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --border-color: #dadce0;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: linear-gradient(135deg, #1E2EFF 0%, #0D47A1 100%);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    overflow-x: hidden;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Skip to main content */
.skip-to-main {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999;
    padding: 1rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

.skip-to-main:focus {
    left: 1rem;
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Main Container */
.call-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem 1rem;
}

/* Call Card */
.call-card {
    background: var(--background);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 3rem 2rem;
    text-align: center;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.call-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
}

/* Logo */
.logo-wrapper {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-image {
    height: 700px;
    width: auto;
    max-width: 100%;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

/* Status Content */
.status-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* Spinner */
.spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

.spinner-ring:nth-child(2) {
    border-top-color: var(--secondary);
    animation-delay: 0.3s;
    animation-duration: 1.8s;
}

.spinner-ring:nth-child(3) {
    border-top-color: var(--accent);
    animation-delay: 0.6s;
    animation-duration: 2.1s;
}

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

/* Status Title */
.status-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    line-height: 1.2;
}

/* Status Message */
.status-message {
    font-size: 1.125rem;
    color: var(--text-light);
    margin: 0;
    font-weight: 500;
}

.status-message.error {
    color: var(--error);
    font-weight: 600;
}

/* Info Box */
.info-box {
    background: var(--background-alt);
    border-left: 4px solid var(--primary);
    border-radius: var(--border-radius);
    padding: 1.25rem 1.5rem;
    width: 100%;
    margin-top: 0.5rem;
}

.info-box.error-box {
    background: #fee2e2;
    border-left-color: var(--error);
}

.info-text {
    font-size: 0.95rem;
    color: var(--text);
    margin: 0;
    line-height: 1.6;
}

.info-text strong {
    color: var(--primary);
    font-weight: 600;
}

.error-text strong {
    color: var(--error);
}

.info-text br {
    margin-bottom: 0.25rem;
}

/* Footer */
.call-footer {
    margin-top: 3rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
}

.call-footer p {
    margin: 0;
}

/* High contrast support */
@media (prefers-contrast: high) {
    :root {
        --text-light: #3a3a3a;
        --border-color: #666;
        --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    }
    
    .call-card {
        border: 2px solid var(--border-color);
    }
    
    .info-box {
        border-width: 3px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .call-card {
        padding: 2rem 1.5rem;
    }
    
    .logo-image {
        height: 60px;
    }
    
    .status-title {
        font-size: 1.5rem;
    }
    
    .status-message {
        font-size: 1rem;
    }
    
    .spinner {
        width: 60px;
        height: 60px;
    }
    
    .spinner-ring {
        border-width: 3px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0.5rem;
    }
    
    .call-container {
        padding: 1rem 0.5rem;
    }
    
    .call-card {
        padding: 1.5rem 1rem;
    }
    
    .logo-image {
        height: 50px;
    }
    
    .status-title {
        font-size: 1.25rem;
    }
    
    .status-message {
        font-size: 0.95rem;
    }
    
    .info-box {
        padding: 1rem;
    }
    
    .info-text {
        font-size: 0.875rem;
    }
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.call-card {
    animation: fadeIn 0.6s ease-out;
}

/* Print styles */
@media print {
    body {
        background: white;
    }
    
    .spinner {
        display: none;
    }
    
    .call-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
