/* ============================================
   AcilKurye - Custom Styles
   ============================================ */

/* CSS Variables - Brand Colors */
:root {
    --brand: #0ea5a4;
    --brand-2: #0b3b3a;
    --accent: #f59e0b;
    --bg: #0b1220;
    --text: #0f172a;
    --text-light: #64748b;
    --border-radius: 16px;
    --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);
}

/* ============================================
   Base Styles
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* ============================================
   Cookie Banner
   ============================================ */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg);
    color: white;
    padding: 1rem 0;
    z-index: 1050;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: none;
}

.cookie-banner.show {
    display: block;
}

.cookie-banner.hidden {
    display: none !important;
}

/* ============================================
   Header & Navigation
   ============================================ */

.site-header {
    z-index: 1030;
}

.site-header.scrolled {
    box-shadow: var(--shadow);
}

.brand-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand);
    text-decoration: none;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--brand) !important;
}

/* Mega Menu */
.mega-menu {
    width: 100%;
    max-width: 1200px;
    padding: 2rem !important;
    margin-top: 0.5rem;
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius);
}

.mega-menu .dropdown-header {
    font-weight: 600;
    color: var(--brand);
    padding: 0.5rem 0;
    margin-bottom: 0.5rem;
    border-bottom: 2px solid var(--brand);
}

.mega-menu .dropdown-item {
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.mega-menu .dropdown-item:hover {
    background-color: rgba(14, 165, 164, 0.1);
    color: var(--brand);
    padding-left: 1.5rem;
}

/* Mobile Menu */
.offcanvas-body .nav-link {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.offcanvas-body .nav-link:hover {
    background-color: rgba(14, 165, 164, 0.1);
    color: var(--brand);
}

/* ============================================
   Buttons
   ============================================ */

.btn-primary {
    background-color: var(--brand);
    border-color: var(--brand);
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--brand-2);
    border-color: var(--brand-2);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline-primary {
    color: var(--brand);
    border-color: var(--brand);
}

.btn-outline-primary:hover {
    background-color: var(--brand);
    border-color: var(--brand);
    color: white;
}

.btn-success {
    background-color: #25d366;
    border-color: #25d366;
}

.btn-success:hover {
    background-color: #128c7e;
    border-color: #128c7e;
}

/* ============================================
   Hero Section
   ============================================ */

.hero-section {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.hero-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-stat i {
    font-size: 1.5rem;
    color: var(--accent);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-stats {
        gap: 1rem;
    }
}

/* ============================================
   Service Cards
   ============================================ */

.service-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    height: 100%;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-card-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 2rem;
}

.service-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text);
}

.service-card-desc {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* ============================================
   Section Styles
   ============================================ */

.section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text);
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-alt {
    background-color: #f8f9fa;
}

/* ============================================
   Feature Cards
   ============================================ */

.feature-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-desc {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ============================================
   News/Post Cards
   ============================================ */

.post-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.post-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.post-card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-card-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--brand);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.post-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.post-card-excerpt {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.post-card-date {
    color: var(--text-light);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ============================================
   Forms
   ============================================ */

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.form-control,
.form-select {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 0.2rem rgba(14, 165, 164, 0.25);
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    display: block;
    font-size: 0.875rem;
    color: #dc3545;
    margin-top: 0.25rem;
}

/* ============================================
   Tables
   ============================================ */

.table {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.table thead {
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: white;
}

.table thead th {
    border: none;
    padding: 1rem;
    font-weight: 600;
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(14, 165, 164, 0.05);
}

/* ============================================
   Accordion (FAQ)
   ============================================ */

.accordion-button {
    font-weight: 600;
    color: var(--text);
}

.accordion-button:not(.collapsed) {
    background-color: rgba(14, 165, 164, 0.1);
    color: var(--brand);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(14, 165, 164, 0.25);
}

.accordion-body {
    color: var(--text-light);
}

/* ============================================
   Footer
   ============================================ */

.footer-cta {
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.site-footer {
    background-color: var(--bg) !important;
}

.site-footer a {
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: var(--brand) !important;
}

.social-links a {
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
}

/* ============================================
   Mobile Fixed Bar
   ============================================ */

.mobile-fixed-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1020;
}

/* Cookie banner varsa, mobile bar'ı yukarı kaydır */
body:has(.cookie-banner.show) .mobile-fixed-bar {
    bottom: 80px;
}

/* ============================================
   Utility Classes
   ============================================ */

.text-brand {
    color: var(--brand);
}

.text-accent {
    color: var(--accent);
}

.bg-brand {
    background-color: var(--brand);
}

.bg-gradient-brand {
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.rounded-custom {
    border-radius: var(--border-radius);
}

.shadow-custom {
    box-shadow: var(--shadow);
}

.shadow-custom-lg {
    box-shadow: var(--shadow-lg);
}

/* ============================================
   Responsive Adjustments
   ============================================ */

@media (max-width: 768px) {
    .section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .service-card,
    .feature-card {
        margin-bottom: 1.5rem;
    }
    
    .mega-menu {
        padding: 1.5rem !important;
    }
    
    /* Body padding bottom for mobile fixed bar */
    body {
        padding-bottom: 90px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
}

/* ============================================
   Loading & Animations
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* ============================================
   Accessibility
   ============================================ */

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--brand);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
    .site-header,
    .mobile-fixed-bar,
    .cookie-banner,
    .footer-cta,
    .btn {
        display: none !important;
    }
}
