/*
 * Champify Support Page Styles
 * Mobile-first responsive design for App Store compliance
 */

/* Reset and Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Container */
.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, #4a90d9 0%, #357abd 100%);
    color: #ffffff;
    padding: 24px 0;
}

.app-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.app-icon {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.app-title h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.tagline {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Main Content */
main {
    flex: 1;
    padding: 24px 0;
}

.section {
    margin-bottom: 32px;
}

.section h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #4a90d9;
}

/* Contact Card */
.contact-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.email-link {
    display: inline-block;
    font-size: 1.1rem;
    color: #4a90d9;
    text-decoration: none;
    font-weight: 600;
    padding: 12px 24px;
    margin: 12px 0;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.email-link:hover,
.email-link:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.email-link:active {
    transform: translateY(0);
}

.response-time {
    font-size: 0.85rem;
    color: #666;
    margin-top: 8px;
}

/* FAQ Section */
.faq-item {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
}

.faq-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.faq-item p {
    font-size: 0.95rem;
    color: #555;
}

.faq-item ul {
    margin-top: 8px;
    padding-left: 20px;
}

.faq-item li {
    margin-bottom: 4px;
    font-size: 0.95rem;
    color: #555;
}

.faq-item a {
    color: #4a90d9;
    text-decoration: none;
}

.faq-item a:hover {
    text-decoration: underline;
}

/* Legal Links */
.legal-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.legal-links a {
    display: inline-block;
    color: #4a90d9;
    text-decoration: none;
    font-size: 1rem;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: background 0.2s;
}

.legal-links a:hover,
.legal-links a:focus {
    background: #e8f0fe;
    text-decoration: none;
}

/* Footer */
.footer {
    background: #f8f9fa;
    padding: 20px 0;
    margin-top: auto;
    text-align: center;
    border-top: 1px solid #e5e5e5;
}

.footer p {
    font-size: 0.85rem;
    color: #666;
}

.last-updated {
    margin-top: 4px;
    font-size: 0.8rem !important;
    color: #999 !important;
}

/* Tablet and Desktop */
@media (min-width: 600px) {
    .header {
        padding: 32px 0;
    }

    .app-icon {
        width: 96px;
        height: 96px;
    }

    .app-title h1 {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1rem;
    }

    main {
        padding: 40px 0;
    }

    .section {
        margin-bottom: 48px;
    }

    .section h2 {
        font-size: 1.6rem;
    }

    .faq-item {
        padding: 20px;
    }

    .legal-links {
        flex-direction: row;
        gap: 16px;
    }

    .footer {
        padding: 24px 0;
    }
}

/* Large Screens */
@media (min-width: 900px) {
    .container {
        padding: 0 40px;
    }

    .app-info {
        gap: 24px;
    }

    .app-icon {
        width: 120px;
        height: 120px;
    }

    .app-title h1 {
        font-size: 2.2rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus {
    outline: 2px solid #4a90d9;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .header {
        background: none;
        color: #000;
    }

    .email-link {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
