/* =================================================================== 
   CATRINA - UNIFIED STYLES
   Contains all styles for the entire application
   =================================================================== */

/* =================================================================== 
   BASE STYLES 
   =================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #ffffff;
}

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

/* =================================================================== 
   HEADER 
   =================================================================== */
.header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #7c3aed;
    text-decoration: none;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    text-decoration: none;
    color: #6b7280;
    font-weight: 500;
    transition: color 0.2s;
}

.nav a:hover {
    color: #7c3aed;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* =================================================================== 
   BUTTONS 
   =================================================================== */
.btn-primary {
    background: #7c3aed;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #6d28d9;
}

.btn-secondary {
    background: white;
    color: #7c3aed;
    padding: 0.75rem 1.5rem;
    border: 2px solid #7c3aed;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #7c3aed;
    color: white;
}

.btn-white {
    background: white;
    color: #7c3aed;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s;
}

.btn-white:hover {
    transform: translateY(-2px);
}

/* =================================================================== 
   FOOTER 
   =================================================================== */
.footer {
    background: #1f2937;
    color: white;
    padding: 3rem 0 1rem;
}

.footer a {
    color: white;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

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

.footer-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.2s;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    text-decoration: underline;
}

.footer-description {
    color: #d1d5db;
    margin-bottom: 1rem;
}

.footer-bottom {
    display: block;
    border-top: 1px solid #374151;
    padding-top: 1rem;
    text-align: center;
    color: #9ca3af;
}

.footer-bottom a {
    color: white;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* =================================================================== 
   COMPONENTS 
   =================================================================== */

/* Contact info component */
.contact-info {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin: 2rem 0;
}

/* Cookie table component */
.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cookie-table th,
.cookie-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.cookie-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #1f2937;
}

/* =================================================================== 
   HOME PAGE STYLES 
   =================================================================== */

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.lang-flag {
    width: 24px;
    height: 24px;
    cursor: pointer;
    border-radius: 3px;
    transition: transform 0.2s;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    border: 2px solid transparent;
}

.lang-flag:hover {
    transform: scale(1.1);
}

.lang-flag.active {
    border-color: #7c3aed;
    background: #f3f4f6;
}

/* Hero Section */
.hero {
    padding: 5rem 0;
    text-align: center;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero h1 span {
    color: #7c3aed;
}

.hero p {
    font-size: 1.25rem;
    color: #6b7280;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Features Section */
.features {
    padding: 5rem 0;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 1rem;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #6b7280;
}

/* CTA Section */
.cta {
    background: #7c3aed;
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

/* =================================================================== 
   STATIC PAGES STYLES 
   =================================================================== */

/* Override container for narrower pages */
.static-page .container {
    max-width: 800px;
}

.content {
    padding: 3rem 0;
}

.back-link {
    color: #7c3aed;
    text-decoration: none;
    margin-bottom: 2rem;
    display: inline-block;
}

.back-link:hover {
    text-decoration: underline;
}

.static-page h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1f2937;
}

.updated {
    color: #6b7280;
    margin-bottom: 2rem;
}

.static-page h2 {
    font-size: 1.875rem;
    font-weight: 600;
    margin: 2.5rem 0 1rem;
    color: #1f2937;
}

.static-page h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: #1f2937;
}

.static-page p {
    margin-bottom: 1.5rem;
    color: #4b5563;
    line-height: 1.7;
}

.static-page ul, 
.static-page ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.static-page li {
    margin-bottom: 0.5rem;
    color: #4b5563;
    line-height: 1.6;
}

.static-page strong {
    color: #1f2937;
    font-weight: 600;
}

.section {
    margin-bottom: 3rem;
}

/* Contact info styling */
a[href^="mailto:"] {
    color: #7c3aed;
    text-decoration: none;
}

a[href^="mailto:"]:hover {
    text-decoration: underline;
}

/* =================================================================== 
   RTL SUPPORT 
   =================================================================== */
[dir="rtl"] .header-content,
[dir="rtl"] .nav,
[dir="rtl"] .hero-buttons,
[dir="rtl"] .language-switcher {
    direction: rtl;
}

/* =================================================================== 
   RESPONSIVE STYLES 
   =================================================================== */
@media (max-width: 768px) {
    /* Base responsive */
    .nav {
        display: none;
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* Home page responsive */
    .language-switcher {
        gap: 0.25rem;
    }
    
    .lang-flag {
        width: 20px;
        height: 20px;
        font-size: 14px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.125rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .features h2, .cta h2 {
        font-size: 2rem;
    }
    
    /* Static pages responsive */
    .content {
        padding: 2rem 0;
    }
    
    .static-page h1 {
        font-size: 2rem;
    }
    
    .static-page h2 {
        font-size: 1.5rem;
    }
    
    .static-page h3 {
        font-size: 1.25rem;
    }
    
    .static-page ul, 
    .static-page ol {
        padding-left: 1.5rem;
    }
} 