/**
 * =============================================================================
 * EZKUBIA - CUSTOM STYLES
 * =============================================================================
 * Tailwind CSS ile birlikte kullanılan özel stiller.
 * Renk değişkenleri config.php'den CSS custom properties olarak gelir.
 * =============================================================================
 */

/* =============================================================================
   BASE STYLES
   ============================================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

/* =============================================================================
   NAVBAR
   ============================================================================= */

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary-blue);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* RTL navbar fix */
.rtl .nav-link::after {
    left: auto;
    right: 0;
}

/* =============================================================================
   LANGUAGE SELECTOR
   ============================================================================= */

.lang-selector {
    position: relative;
}

.lang-selector-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.lang-selector-toggle:hover {
    border-color: var(--color-primary-blue);
}

.lang-selector-toggle .chevron {
    transition: transform 0.2s;
}

.lang-selector-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 180px;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    list-style: none;
    padding: 0.5rem;
    z-index: 100;
    max-height: 300px;
    overflow-y: auto;
}

.lang-selector-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-selector-dropdown li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: 0.5rem;
    text-decoration: none;
    color: #374151;
    transition: background 0.2s;
}

.lang-selector-dropdown li a:hover {
    background: #f3f4f6;
}

.lang-selector-dropdown li a.active {
    background: #eff6ff;
    color: var(--color-primary-blue);
}

.lang-selector-dropdown .incomplete {
    color: #f97316;
    font-size: 0.75rem;
}

/* RTL language selector */
.rtl .lang-selector-dropdown {
    right: auto;
    left: 0;
}

/* =============================================================================
   HERO SECTION
   ============================================================================= */

.hero-gradient {
    background: linear-gradient(135deg, var(--color-gradient-start) 0%, var(--color-gradient-end) 100%);
}

.hero-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* =============================================================================
   BUTTONS
   ============================================================================= */

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: var(--color-primary-blue);
    color: white;
    font-weight: 600;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: white;
    color: var(--color-dark);
    font-weight: 600;
    border-radius: 0.5rem;
    text-decoration: none;
    border: 2px solid #e5e7eb;
    transition: all 0.2s;
}

.btn-secondary:hover {
    border-color: var(--color-primary-blue);
    color: var(--color-primary-blue);
}

.btn-highlight {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: var(--color-highlight-orange);
    color: white;
    font-weight: 600;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-highlight:hover {
    background: #ea580c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

/* =============================================================================
   CARDS
   ============================================================================= */

.service-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f3f4f6;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.15);
    border-color: var(--color-primary-blue);
}

.service-card .icon {
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.service-card.android .icon {
    background: linear-gradient(135deg, #a8e063 0%, #56ab2f 100%);
    color: white;
}

.service-card.ios .icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.service-card.custom .icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

/* App Cards */
.app-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f3f4f6;
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.15);
}

.app-card .app-icon {
    width: 5rem;
    height: 5rem;
    max-width: 5rem;
    max-height: 5rem;
    flex-shrink: 0;
    border-radius: 1.25rem;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* =============================================================================
   STATISTICS COUNTER
   ============================================================================= */

.stat-item {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-primary-blue) 0%, var(--color-creative-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: #6b7280;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
}

/* =============================================================================
   FORMS
   ============================================================================= */

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-input::placeholder {
    color: #9ca3af;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-dark);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

/* =============================================================================
   STORE BADGES
   ============================================================================= */

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #000;
    color: white;
    border-radius: 0.5rem;
    text-decoration: none;
    font-size: 0.75rem;
    transition: all 0.2s;
}

.store-badge:hover {
    background: #1f2937;
    transform: scale(1.02);
}

.store-badge .icon {
    font-size: 1.25rem;
}

.store-badge .text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.store-badge .text small {
    font-size: 0.625rem;
    opacity: 0.8;
}

/* =============================================================================
   SECTION STYLES
   ============================================================================= */

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--color-dark);
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

/* =============================================================================
   ANIMATIONS
   ============================================================================= */

/* Fade in up */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Stagger children */
.stagger-children > * {
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
}

.stagger-children > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.6s; }

/* Float animation */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Pulse animation */
@keyframes pulse-soft {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.animate-pulse-soft {
    animation: pulse-soft 2s ease-in-out infinite;
}

/* =============================================================================
   UTILITIES
   ============================================================================= */

.text-gradient {
    background: linear-gradient(135deg, var(--color-primary-blue) 0%, var(--color-creative-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--color-primary-blue) 0%, var(--color-creative-purple) 100%);
}

.shadow-primary {
    box-shadow: 0 10px 40px -10px rgba(37, 99, 235, 0.3);
}

.shadow-highlight {
    box-shadow: 0 10px 40px -10px rgba(249, 115, 22, 0.3);
}

/* =============================================================================
   SCROLLBAR
   ============================================================================= */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */

@media (max-width: 768px) {
    .section-title {
        font-size: 1.75rem;
    }
    
    .stat-number {
        font-size: 2.25rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
}

/* =============================================================================
   PRINT STYLES
   ============================================================================= */

@media print {
    nav, footer, .cookie-banner, #smart-app-banner {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    a {
        text-decoration: underline;
    }
}
