﻿/* FreeScout Website Styles */

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

:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #818cf8;
    --secondary: #0ea5e9;
    --accent: #f59e0b;
    --dark: #1e293b;
    --dark-light: #334155;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --light: #f1f5f9;
    --white: #ffffff;
    --success: #22c55e;
    --warning: #eab308;
    --danger: #ef4444;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
    overflow-x: hidden;
}

/* RTL Support */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .nav {
    margin-right: auto;
    margin-left: 0;
}

[dir="rtl"] .sidebar {
    border-right: none;
    border-left: 1px solid var(--light);
}

[dir="rtl"] .ticket-card .ticket-badge {
    margin-left: 0;
    margin-right: auto;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 16px; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

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

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

.btn-white:hover {
    background: var(--light);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 18px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--light);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--dark);
    font-weight: 700;
    font-size: 24px;
}

.logo-icon {
    font-size: 28px;
}

.nav {
    display: flex;
    gap: 32px;
    margin-left: auto;
    margin-right: 24px;
}

.nav a {
    text-decoration: none;
    color: var(--gray);
    font-weight: 500;
    transition: var(--transition);
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.language-select {
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid var(--light);
    border-radius: var(--radius-sm);
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.language-select:hover {
    border-color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--gray);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 14px;
    color: var(--gray);
}

/* Dashboard Preview */
.dashboard-preview {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 1px solid var(--light);
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--dark);
    color: var(--white);
}

.preview-dots {
    display: flex;
    gap: 8px;
}

.preview-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.preview-dots span:nth-child(1) { background: #ef4444; }
.preview-dots span:nth-child(2) { background: #f59e0b; }
.preview-dots span:nth-child(3) { background: #22c55e; }

.preview-title {
    font-weight: 500;
    opacity: 0.8;
}

.preview-content {
    display: flex;
    min-height: 400px;
}

.sidebar {
    width: 200px;
    background: var(--light);
    padding: 20px 0;
    border-right: 1px solid #e2e8f0;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--gray);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-item:hover {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
}

.sidebar-item.active {
    background: var(--primary);
    color: var(--white);
}

.preview-main {
    flex: 1;
    padding: 20px;
    background: var(--white);
}

.ticket-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--white);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    border: 1px solid var(--light);
    transition: var(--transition);
}

.ticket-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
}

.ticket-card.unread {
    background: #f0f7ff;
    border-left: 3px solid var(--primary);
}

.ticket-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.ticket-info {
    flex: 1;
    min-width: 0;
}

.ticket-title {
    font-weight: 600;
    color: var(--dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ticket-meta {
    font-size: 13px;
    color: var(--gray);
}

.ticket-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: var(--primary);
    color: var(--white);
}

.ticket-badge.pending { background: var(--warning); color: var(--dark); }
.ticket-badge.open { background: var(--success); }

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    color: var(--dark);
}

.section-header p {
    font-size: 18px;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background: var(--white);
    padding: 40px 32px;
    border-radius: var(--radius);
    border: 1px solid var(--light);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 24px;
}

.feature-card h3 {
    margin-bottom: 12px;
    color: var(--dark);
}

.feature-card p {
    color: var(--gray);
    margin-bottom: 0;
}

/* Modules Section */
.modules {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--light) 0%, var(--white) 100%);
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.module-card {
    background: var(--white);
    padding: 32px 24px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid var(--light);
    transition: var(--transition);
}

.module-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.module-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.module-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--dark);
}

.module-card p {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 0;
}

.modules-cta {
    text-align: center;
}

/* Download Section */
.download {
    padding: 100px 0;
    background: var(--white);
}

.download-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

.download-card {
    background: var(--white);
    padding: 48px 32px;
    border-radius: var(--radius);
    text-align: center;
    border: 2px solid var(--light);
    transition: var(--transition);
}

.download-card:hover {
    border-color: var(--primary);
}

.download-icon {
    font-size: 56px;
    margin-bottom: 24px;
}

.download-card h3 {
    margin-bottom: 12px;
}

.download-card p {
    color: var(--gray);
    margin-bottom: 24px;
}

.requirements {
    background: var(--light);
    padding: 32px;
    border-radius: var(--radius);
    text-align: center;
}

.requirements h4 {
    margin-bottom: 16px;
}

.requirements ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.requirements li {
    color: var(--gray);
    padding: 8px 16px;
    background: var(--white);
    border-radius: var(--radius-sm);
    font-size: 14px;
}

/* Testimonials */
.testimonials {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.testimonials .section-header h2 {
    color: var(--white);
}

.testimonials .section-header p {
    color: rgba(255, 255, 255, 0.8);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 32px;
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
}

.testimonial-rating {
    margin-bottom: 16px;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.9);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.author-name {
    font-weight: 600;
}

.author-company {
    font-size: 14px;
    opacity: 0.8;
}

/* CTA Section */
.cta {
    padding: 100px 0;
    background: var(--dark);
    color: var(--white);
    text-align: center;
}

.cta h2 {
    margin-bottom: 16px;
}

.cta p {
    font-size: 20px;
    opacity: 0.8;
    margin-bottom: 32px;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* Footer */
.footer {
    padding: 80px 0 40px;
    background: var(--dark);
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 16px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--white);
}

.footer-links h4 {
    margin-bottom: 24px;
    font-size: 16px;
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    margin-bottom: 12px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .features-grid,
    .download-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modules-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--light);
        box-shadow: var(--shadow-lg);
    }
    
    .nav.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-image {
        display: none;
    }
    
    .features-grid,
    .modules-grid,
    .download-options,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
}
