/* DetectAI Website Styles - Cleaned Up */

/* CSS Variables */
:root {
    --primary-blue: #007AFF;
    --primary-orange: #FF9500;
    --primary-green: #34C759;
    --text-primary: #1D1D1F;
    --text-secondary: #6B7280;
    --background: #FFFFFF;
    --surface: #F8F9FA;
    --border: #E5E7EB;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background);
}

/* Layout */
.main-container {
    min-height: 100vh;
}

/* Header */
.header {
    padding: 20px 0;
    text-align: center;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.logo-icon img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-top: 7px;
}

.logo-text {
    text-align: left;
}

.logo-text h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0;
    margin-top: 0;
}

.logo-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 0;
    margin-top: -8px;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 0;
    margin-top: -16px;
}

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-green));
    margin: 40px 0;
}

/* Sections */
.section {
    padding: 40px 0;
    margin-bottom: 40px;
}

.section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-align: center;
}

.section p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.feature-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* CTA Actions */
.cta-actions {
    text-align: center;
    margin-top: 20px;
}

.download-button {
    display: inline-block;
    transition: transform 0.3s ease;
}

.download-button:hover {
    transform: scale(1.05);
}

.download-button img {
    height: 60px;
}

/* Navigation */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 250px;
    height: 100vh;
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding: 20px;
    z-index: 10001;
}

.sidebar h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 30px;
    text-align: center;
}

.nav-links {
    list-style: none;
    margin-bottom: 30px;
}

.nav-links li {
    margin-bottom: 10px;
}

.nav-links a {
    display: block;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    background: var(--primary-blue);
    color: white;
}

.app-store-link {
    text-align: center;
}

.app-store-link img {
    max-width: 100%;
    height: auto;
}

/* Main Content */
.content {
    margin-left: 250px;
    padding: 20px;
}

.main-content {
    margin-left: 0;
    padding: 0;
}

/* Support Page Styles */
.highlight-box {
    background: var(--surface);
    padding: 30px;
    border-radius: 16px;
    border-left: 4px solid var(--primary-blue);
    margin-bottom: 40px;
    box-shadow: none;
}

.highlight-box p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

.faq-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: none;
}

.faq-question {
    background: var(--surface);
    padding: 20px;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border);
}

.faq-answer {
    padding: 20px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Privacy Page Styles */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.data-types {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.data-type-tag {
    background: var(--primary-blue);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.data-type-tag.orange {
    background: var(--primary-orange);
}

.data-type-tag.green {
    background: var(--primary-green);
}

.contact-info {
    background: var(--surface);
    padding: 30px;
    border-radius: 12px;
    margin-top: 30px;
    box-shadow: none;
}

.contact-info h2 {
    color: var(--primary-green);
    margin-top: 0;
}

/* General content styling */
h2 {
    color: var(--primary-blue);
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 2rem;
    font-weight: 700;
}

h3 {
    color: var(--text-primary);
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 600;
}

h4 {
    color: var(--text-primary);
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.25rem;
    font-weight: 600;
}

p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
}

ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

li {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 10000;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-toggle:hover {
    background: #0051D5;
    transform: scale(1.05);
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
    background: #0051D5;
}

/* Mobile Menu Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
}

/* Sidebar Mobile States */
.sidebar.mobile-open {
    transform: translateX(0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    /* Show mobile menu button */
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Hide sidebar by default on mobile */
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }
    
    /* Adjust content for mobile */
    .content {
        margin-left: 0 !important;
        padding: 70px 15px 20px 15px; /* Top padding for menu button */
        width: 100%;
    }
    
    .main-content {
        margin-left: 0 !important;
        padding: 0;
        width: 100%;
    }
    
    /* Ensure main container doesn't constrain width */
    .main-container {
        width: 100%;
    }
    
    /* Logo adjustments */
    .logo {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .logo-text {
        text-align: center;
    }
    
    .logo-text h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 0.95rem;
        margin-top: -8px;
    }
    
    /* Section typography */
    .section h2 {
        font-size: 1.75rem;
    }
    
    .section p {
        font-size: 1rem;
    }
    
    /* Cards grid mobile optimization */
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-card {
        padding: 25px;
    }
    
    .card-icon {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .feature-card h3,
    .feature-card h4 {
        font-size: 1.15rem;
    }
    
    .feature-card p {
        font-size: 0.95rem;
    }
    
    /* Section spacing */
    .section {
        padding: 25px 0;
        margin-bottom: 30px;
    }
    
    .section-divider {
        margin: 30px 0;
    }
    
    /* Header adjustments */
    .header {
        padding: 15px 0;
    }
    
    /* Touch-friendly buttons */
    .download-button img {
        height: 50px;
    }
    
    /* Improved touch targets */
    .nav-links a {
        padding: 16px 20px;
        font-size: 1.05rem;
    }
    
    /* App store link in sidebar */
    .app-store-link {
        margin-top: 30px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .content {
        padding: 60px 10px 15px 10px;
    }
    
    .logo-text h1 {
        font-size: 1.75rem;
    }
    
    .section h2 {
        font-size: 1.5rem;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    .download-button img {
        height: 45px;
    }
}

/* Modern Feedback Form Styles */
.feedback-form-container {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 50px;
    border-radius: 24px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.08),
        0 8px 16px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.feedback-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-green));
    border-radius: 24px 24px 0 0;
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(0, 122, 255, 0.1);
}

.form-header h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin: 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.feedback-form {
    width: 100%;
    position: relative;
    z-index: 1;
}

.form-group {
    margin-bottom: 30px;
    position: relative;
}

.form-group label {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-size: 1rem;
    gap: 8px;
}

.label-icon {
    font-size: 1.2rem;
    opacity: 0.8;
}

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

.input-wrapper,
.textarea-wrapper {
    position: relative;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(0, 122, 255, 0.1);
    border-radius: 16px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 
        0 0 0 4px rgba(0, 122, 255, 0.1),
        0 4px 16px rgba(0, 122, 255, 0.15);
    transform: translateY(-1px);
    background: white;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

.form-help {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 8px;
    padding-left: 4px;
}

/* Modern Select Styling */
.modern-select .select-wrapper {
    position: relative;
}

.modern-select select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 50px;
    cursor: pointer;
}

.select-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--primary-blue);
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.modern-select select:focus + .select-arrow {
    transform: translateY(-50%) rotate(180deg);
}

/* Modern Checkbox Styling */
.checkbox-modern {
    background: rgba(0, 122, 255, 0.03);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(0, 122, 255, 0.1);
}

.checkbox-label-modern {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-primary);
    position: relative;
}

.checkbox-label-modern input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark-modern {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: white;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-label-modern input:checked ~ .checkmark-modern {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
}

.checkmark-modern::after {
    content: '';
    position: absolute;
    display: none;
    left: 8px;
    top: 4px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label-modern input:checked ~ .checkmark-modern::after {
    display: block;
}

.checkbox-text {
    flex: 1;
}

.checkbox-text strong {
    display: block;
    margin-bottom: 4px;
    font-size: 1rem;
}

.checkbox-text small {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.form-actions {
    margin-top: 40px;
    text-align: center;
}

.submit-button-modern {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0051D5 100%);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 220px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 
        0 8px 24px rgba(0, 122, 255, 0.3),
        0 4px 8px rgba(0, 122, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.submit-button-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.submit-button-modern:hover::before {
    left: 100%;
}

.submit-button-modern:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 32px rgba(0, 122, 255, 0.4),
        0 8px 16px rgba(0, 122, 255, 0.3);
    background: linear-gradient(135deg, #0051D5 0%, var(--primary-blue) 100%);
}

.submit-button-modern:active:not(:disabled) {
    transform: translateY(-1px);
}

.submit-button-modern:disabled {
    background: var(--text-secondary);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    user-select: none;
}

.submit-button-modern:disabled * {
    cursor: not-allowed;
    user-select: none;
}

.submit-button-modern:disabled .button-loading {
    cursor: none;
    user-select: none;
}

/* Completely remove cursor from loading state */
.submit-button-modern:disabled,
.submit-button-modern:disabled *,
.submit-button-modern:disabled .button-loading,
.submit-button-modern:disabled .button-loading * {
    cursor: none !important;
    caret-color: transparent !important;
}

/* Remove focus outline and cursor from disabled button */
.submit-button-modern:disabled:focus {
    outline: none;
    cursor: none !important;
}

.submit-button-modern:disabled:focus * {
    cursor: none !important;
}

.button-icon {
    font-size: 1.2rem;
}

.loading-dots {
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% {
        content: '.';
    }
    40% {
        content: '..';
    }
    60%, 100% {
        content: '...';
    }
}

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

.button-loading {
    display: inline-block;
    animation: pulse 1.5s ease-in-out infinite;
    cursor: none;
    user-select: none;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Success and Error Messages */
.success-message,
.error-message {
    text-align: center;
    padding: 40px;
    border-radius: 16px;
    margin-top: 20px;
}

.success-message {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid var(--primary-green);
}

.error-message {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 2px solid #ef4444;
}

.success-icon,
.error-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.success-message h3 {
    color: var(--primary-green);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.error-message h3 {
    color: #ef4444;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.success-message p,
.error-message p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.submit-another-btn,
.retry-btn {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-another-btn:hover,
.retry-btn:hover {
    background: #0051D5;
    transform: translateY(-1px);
}

.retry-btn {
    background: #ef4444;
}

.retry-btn:hover {
    background: #dc2626;
}

/* Modern reCAPTCHA styling */
.captcha-group {
    background: rgba(0, 122, 255, 0.02);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid rgba(0, 122, 255, 0.1);
    text-align: center;
}

.captcha-wrapper {
    display: inline-block;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.g-recaptcha {
    display: inline-block;
}

/* Mobile adjustments for feedback form */
@media (max-width: 768px) {
    .feedback-form-container {
        padding: 30px 20px;
        margin: 0 10px;
        border-radius: 20px;
    }
    
    .form-header h3 {
        font-size: 1.75rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 16px 18px;
        font-size: 16px; /* Prevents zoom on iOS */
        border-radius: 14px;
    }
    
    .submit-button-modern {
        width: 100%;
        padding: 20px 32px;
        font-size: 1.1rem;
        border-radius: 14px;
    }
    
    .checkbox-modern {
        padding: 16px;
    }
    
    .checkbox-label-modern {
        gap: 12px;
    }
    
    .captcha-group {
        padding: 20px;
    }
    
    .captcha-wrapper {
        padding: 16px;
    }
    
    .success-message,
    .error-message {
        padding: 30px 20px;
        border-radius: 20px;
    }
    
    .success-icon,
    .error-icon {
        font-size: 2.5rem;
    }
}

/* Tablet landscape */
@media (min-width: 769px) and (max-width: 1024px) {
    .sidebar {
        width: 220px;
    }
    
    .content {
        margin-left: 220px;
    }
    
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}