/* Pair Research Maintenance Page Styles */

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

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #f59e0b;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --background: #ffffff;
    --surface: #f9fafb;
    --border: #e5e7eb;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --gradient-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --card-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--gradient-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.8s ease-out;
}

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.maintenance-card {
    background: var(--background);
    border-radius: 24px;
    box-shadow: var(--card-shadow);
    padding: 4rem;
    text-align: center;
    max-width: 1000px;
    width: 100%;
    margin: 2rem auto;
    position: relative;
    overflow: hidden;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideUp 0.8s ease-out 0.2s both;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.maintenance-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), #e11d48);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textGlow 2s ease-in-out infinite alternate;
    letter-spacing: -0.02em;
}

@keyframes textGlow {
    from {
        filter: drop-shadow(0 0 20px rgba(37, 99, 235, 0.3));
    }
    to {
        filter: drop-shadow(0 0 30px rgba(37, 99, 235, 0.5));
    }
}

.maintenance-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 500;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

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

.content-section {
    margin: 2.5rem 0;
    padding: 2rem;
    background: var(--surface);
    border-radius: 8px;
    border: 1px solid var(--border);
    text-align: left;
    transition: border-color 0.2s ease;
}

.content-section:hover {
    border-color: var(--primary-color);
}

.content-section h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
    position: relative;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

.content-section p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.6;
}

.logo {
    margin: 2.5rem 0;
}

.logo img {
    max-height: 80px;
    width: auto;
    border-radius: 6px;
    transition: opacity 0.2s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo img:hover {
    opacity: 0.9;
}

.example-image {
    margin: 2.5rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.example-image img {
    width: 100%;
    height: auto;
    display: block;
}

.research-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
    padding: 0.125rem 0;
}

.research-link:hover,
.research-link:focus {
    color: var(--secondary-color);
    border-bottom-color: var(--primary-color);
}

.support-info {
    background: var(--surface-secondary);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary-color);
    border-radius: 6px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.support-info p {
    color: var(--text-secondary);
    margin: 0;
    font-style: italic;
    line-height: 1.6;
}

.support-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.support-link:hover,
.support-link:focus {
    color: var(--secondary-color);
    border-bottom-color: var(--primary-color);
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--surface-secondary);
    color: var(--text-secondary);
    padding: 0.75rem 1.25rem;
    border-radius: 20px;
    font-weight: 500;
    margin: 2rem 0;
    border: 1px solid var(--border);
    font-size: 0.9rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    opacity: 0.8;
}

.footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    text-align: center;
    margin-top: auto;
}

.footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 400;
}

.footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer a:hover,
.footer a:focus {
    color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .maintenance-card {
        max-width: 800px;
        padding: 3rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .main-content {
        padding: 2rem 0;
    }
    
    .maintenance-card {
        padding: 2rem 1.5rem;
        margin: 1rem;
        max-width: 100%;
    }

    .maintenance-title {
        font-size: 2.25rem;
    }

    .maintenance-subtitle {
        font-size: 1.125rem;
    }

    .content-section {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }

    .content-section h2 {
        font-size: 1.25rem;
    }

    .content-section p {
        font-size: 0.95rem;
    }

    .logo img {
        max-height: 70px;
    }
}

@media (max-width: 480px) {
    .maintenance-card {
        padding: 1.5rem 1rem;
        border-radius: 8px;
    }

    .maintenance-title {
        font-size: 2rem;
    }

    .maintenance-subtitle {
        font-size: 1rem;
    }

    .content-section {
        padding: 1.25rem;
    }

    .content-section h2 {
        font-size: 1.125rem;
    }

    .logo img {
        max-height: 60px;
    }

    .status-indicator {
        padding: 0.625rem 1rem;
        font-size: 0.85rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0000ff;
        --secondary-color: #000080;
        --text-primary: #000000;
        --text-secondary: #333333;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        transition-duration: 0.1s !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #8b5cf6;
        --secondary-color: #7c3aed;
        --accent-color: #a855f7;
        --text-primary: #f8fafc;
        --text-secondary: #cbd5e1;
        --text-muted: #94a3b8;
        --background: #0f172a;
        --surface: #1e293b;
        --surface-secondary: #334155;
        --border: #475569;
        --border-light: #334155;
    }

    body {
        background: linear-gradient(to bottom, #0f172a 0%, #1e293b 100%);
    }

    .support-info {
        background: var(--surface-secondary);
        border-left-color: var(--primary-color);
    }

    .footer {
        background: var(--surface);
    }
}
