/* 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);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Add blue and yellow polka dot background pattern like in the app */
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(0, 82, 180, 0.08) 2px, transparent 2px),
        radial-gradient(circle at 80% 80%, rgba(255, 184, 0, 0.06) 1.5px, transparent 1.5px),
        radial-gradient(circle at 40% 60%, rgba(0, 82, 180, 0.05) 1px, transparent 1px),
        radial-gradient(circle at 60% 40%, rgba(255, 184, 0, 0.04) 1.5px, transparent 1.5px),
        radial-gradient(circle at 30% 80%, rgba(0, 82, 180, 0.03) 1px, transparent 1px),
        radial-gradient(circle at 70% 20%, rgba(255, 184, 0, 0.05) 1px, transparent 1px);
    background-size: 
        100px 100px,
        120px 120px,
        80px 80px,
        150px 150px,
        90px 90px,
        110px 110px;
    background-position: 
        0 0,
        30px 30px,
        60px 10px,
        90px 60px,
        120px 20px,
        150px 80px;
}

/* Improved typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

ul, ol {
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Colors from app theme */
:root {
    --primary: #0052B4;
    --secondary: #FFB800;
    --primary-light: #E8F4FF;
    --primary-dark: #005486;
    --secondary-light: #FFF8E7;
    --background: #F5F5F5;
    --surface: #FFFFFF;
    --text-primary: #1A1A1A;
    --text-secondary: #666666;
    --text-disabled: #A0AEC0;
    --border-light: #E5E7EB;
    --success: #10B981;
    --shadow: rgba(0, 0, 0, 0.1);
}

/* Header */
.header {
    background: var(--surface);
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
}

.language-toggle {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.language-toggle:hover {
    background: var(--primary-dark);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
    padding: 4rem 2rem;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-primary:disabled {
    background: var(--text-disabled);
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: #77974E;  /* Custom green */
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    background: #5F7A3E;  /* Darker green on hover */
    transform: translateY(-2px);
}

.hero-icon {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    display: block;
    border-radius: 48px;
}

/* About Section */
.about {
    padding: 4rem 2rem;
    background: var(--surface);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin-bottom: 3rem;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    line-height: 1.8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.creator-info {
    background: var(--primary-light);
    padding: 2rem;
    border-radius: 12px;
}

.creator-info h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.creator-info p {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.instagram-link {
    color: #E4405F;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 4px;
    padding: 2px 4px;
}

.instagram-link:hover {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Features Section */
.features {
    padding: 4rem 2rem;
    background: var(--background);
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px var(--shadow);
    transition: transform 0.3s ease;
    border-left: 4px solid #FFB800;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 80% 20%, rgba(0, 82, 180, 0.03) 1px, transparent 1px),
        radial-gradient(circle at 20% 80%, rgba(255, 184, 0, 0.03) 1px, transparent 1px);
    background-size: 50px 50px, 60px 60px;
    background-position: 0 0, 25px 25px;
    z-index: 0;
}

.feature-card > * {
    position: relative;
    z-index: 1;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-icon ion-icon {
    font-size: 3rem;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-secondary);
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: white;
    padding: 3rem 2rem 1rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
}

.footer-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 0.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .logo-text {
        font-size: 1.1rem;
        white-space: nowrap;
    }
    
    .nav-links {
        gap: 0.8rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
        white-space: nowrap;
    }
    
    .language-toggle {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-logo-text {
        white-space: nowrap;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 0.5rem;
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
    }
    
    .logo-text {
        font-size: 0.9rem;
        white-space: nowrap;
    }
    
    .footer-logo-text {
        font-size: 1rem;
        white-space: nowrap;
    }
    
    .nav-links {
        gap: 0.4rem;
    }
    
    .nav-link {
        font-size: 0.8rem;
        white-space: nowrap;
    }
    
    .language-toggle {
        padding: 0.3rem 0.5rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 360px) {
    .nav-container {
        padding: 0 0.25rem;
    }
    
    .logo-icon {
        width: 28px;
        height: 28px;
    }
    
    .logo-text {
        font-size: 0.8rem;
        white-space: nowrap;
    }
    
    .footer-logo-text {
        font-size: 0.9rem;
        white-space: nowrap;
    }
    
    .nav-links {
        gap: 0.2rem;
    }
    
    .nav-link {
        font-size: 0.7rem;
        white-space: nowrap;
    }
    
    .language-toggle {
        padding: 0.2rem 0.4rem;
        font-size: 0.7rem;
    }
}

/* Support and Privacy Page Specific Styles */
.support-page, .privacy-page {
    padding: 2rem;
    min-height: 70vh;
    background: var(--background);
}

.support-container, .privacy-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin-bottom: 3rem;
}

.last-updated {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 3rem;
}

.support-content, .privacy-content {
    display: grid;
    gap: 3rem;
}

.privacy-content {
    background: var(--surface);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow);
}

.support-content {
    background: var(--surface);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow);
}

.support-section h2, .contact-section h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 2rem;
}

.faq-item {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px var(--shadow);
}

.faq-item h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-item {
    background: var(--primary-light);
    padding: 1.5rem;
    border-radius: 12px;
}

.contact-item h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--text-primary);
    font-weight: 500;
}

/* Privacy specific styles */
.section {
    margin-bottom: 2.5rem;
}

.section h2 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-light);
}

.section p {
    color: var(--text-primary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.section ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.section li {
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .support-page, .privacy-page {
        padding: 1rem;
    }
    
    .privacy-content {
        padding: 2rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .section ul {
        margin-left: 1rem;
    }
}

/* Important note styling for privacy policy */
.important-note {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 1rem;
    margin: 1rem 0;
    text-align: center;
}

.important-note strong {
    color: #856404;
    font-size: 1.1rem;
}

/* Cookie Consent Popup */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 1.5rem;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    border-top: 3px solid #6b73ff;
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-consent-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-consent-text {
    flex: 1;
    min-width: 300px;
}

.cookie-consent-text h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.cookie-consent-text p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    opacity: 0.9;
}

.cookie-consent-text a {
    color: #6b73ff;
    text-decoration: underline;
}

.cookie-consent-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.cookie-btn-accept {
    background: #6b73ff;
    color: white;
}

.cookie-btn-accept:hover {
    background: #5a63e6;
    transform: translateY(-1px);
}

.cookie-btn-reject {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn-reject:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.cookie-btn-settings {
    background: transparent;
    color: #6b73ff;
    border: 1px solid #6b73ff;
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
}

.cookie-btn-settings:hover {
    background: #6b73ff;
    color: white;
}

@media (max-width: 768px) {
    .cookie-consent-container {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-consent-buttons {
        justify-content: center;
        width: 100%;
    }
    
    .cookie-btn {
        flex: 1;
        min-width: 100px;
    }
}