/* 
   arifuz.com.tr - Kurumsal Web Sitesi CSS
   %100 Saf CSS - Framework Yok - Mobil Öncelikli
*/

/* 1. CSS Değişkenleri (Karanlık ve Aydınlık Tema) */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-card: #ffffff;
    
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    
    --color-primary: #0d233a; /* Kurumsal Koyu Mavi */
    --color-primary-light: #1e3a5f;
    --color-primary-dark: #071625;
    --color-accent: #2563eb;
    
    --color-whatsapp: #25d366; /* YEŞİL SADECE WHATSAPP BUTONLARINDA */
    --color-whatsapp-hover: #128c7e;
    
    --border-color: #e2e8f0;
    
    --font-heading: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Source Sans 3', system-ui, -apple-system, sans-serif;
    
    --max-width: 1200px;
    --transition-speed: 0.3s;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #0f172a;
        --bg-secondary: #1e293b;
        --bg-card: #1e293b;
        
        --text-primary: #f1f5f9;
        --text-secondary: #cbd5e1;
        --text-muted: #94a3b8;
        
        --border-color: #334155;
    }
}

/* 2. Temel Sıfırlama ve Yapılandırma */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1.0625rem; /* 17px+ */
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.25;
    margin-bottom: 1rem;
    font-weight: 700;
}

@media (prefers-color-scheme: dark) {
    h1, h2, h3, h4, h5, h6 {
        color: #ffffff;
    }
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--color-primary-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 3. Layout Grid / Flexbox */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin-right: auto;
    margin-left: auto;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
}

.grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* 4. Top Utility Bar */
.top-bar {
    background-color: var(--color-primary-dark);
    color: #e2e8f0;
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar a {
    color: #e2e8f0;
}

.top-bar a:hover {
    color: var(--color-whatsapp);
}

/* 5. Navigation Header */
.main-header {
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo-box {
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 1.5rem;
    font-family: var(--font-heading);
    color: var(--color-primary);
}

@media (prefers-color-scheme: dark) {
    .logo-box {
        color: #ffffff;
    }
}

.logo-box span {
    color: var(--color-accent);
}

/* Desktop Menu Links */
.desktop-nav {
    display: none;
}

@media (min-width: 1024px) {
    .desktop-nav {
        display: block;
    }
    
    .nav-list {
        display: flex;
        list-style: none;
        align-items: center;
        gap: 1.5rem;
    }
    
    .nav-link {
        font-family: var(--font-heading);
        font-weight: 600;
        font-size: 0.95rem;
        color: var(--text-primary);
        padding: 0.5rem 0;
        border-bottom: 2px solid transparent;
        transition: color var(--transition-speed), border var(--transition-speed);
    }
    
    .nav-link:hover, .nav-link.active {
        color: var(--color-accent);
        border-color: var(--color-accent);
    }
    
    /* Dropdown */
    .dropdown-parent {
        position: relative;
        cursor: pointer;
    }
    
    .dropdown-parent .nav-link {
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }
    
    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--bg-card);
        border: 1px solid var(--border-color);
        list-style: none;
        width: 220px;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        border-radius: 4px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: opacity var(--transition-speed), transform var(--transition-speed), visibility var(--transition-speed);
    }
    
    .dropdown-parent:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .dropdown-menu a {
        display: block;
        padding: 0.75rem 1rem;
        color: var(--text-primary);
        font-size: 0.9rem;
        font-weight: 500;
        transition: background var(--transition-speed);
    }
    
    .dropdown-menu a:hover {
        background-color: var(--bg-secondary);
        color: var(--color-accent);
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 18px;
}

.mobile-menu-toggle .bar {
    height: 2.5px;
    width: 100%;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-speed);
}

@media (min-width: 1024px) {
    .mobile-menu-toggle {
        display: none;
    }
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--bg-primary);
    z-index: 99;
    transform: translateX(100%);
    transition: transform var(--transition-speed);
    overflow-y: auto;
    border-top: 1px solid var(--border-color);
}

.mobile-nav-overlay.open {
    transform: translateX(0);
}

.mobile-nav-content {
    padding: 2rem 1.5rem;
}

.mobile-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav-link {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
}

.mobile-dropdown-menu {
    list-style: none;
    padding-left: 1.5rem;
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-left: 2px solid var(--border-color);
}

.mobile-dropdown-menu a {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-speed);
    border: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--color-primary-light);
    color: #ffffff;
}

.btn-secondary {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--border-color);
}

/* YEŞİL SADECE WHATSAPP CTA BUTONLARINDA */
.btn-whatsapp {
    background-color: var(--color-whatsapp) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 6px -1px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp:hover {
    background-color: var(--color-whatsapp-hover) !important;
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* 6. Hero Sections */
.hero-section {
    background-color: var(--color-primary-dark);
    color: #ffffff;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section p {
    color: #cbd5e1;
}

.hero-section h1 {
    color: #ffffff;
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .hero-section h1 {
        font-size: 3rem;
    }
}

.hero-grid {
    align-items: center;
}

.hero-tag {
    display: inline-block;
    background-color: rgba(37, 99, 235, 0.2);
    color: #93c5fd;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.hero-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

/* 7. Section Styles */
.section {
    padding: 5rem 0;
}

.section-bg {
    background-color: var(--bg-secondary);
}

.section-title-box {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.section-title-box h1,
.section-title-box h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.section-title-box p {
    font-size: 1.125rem;
}

/* Cards & Services */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
}

.card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

/* 8. Tables (Yatay Kaydırılabilir) */
.table-container {
    width: 100%;
    overflow-x: auto;
    margin: 2rem 0;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 600px; /* Minimum width to force scroll on small screens */
}

th, td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: var(--bg-secondary);
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background-color: var(--bg-secondary);
}

.text-center {
    text-align: center;
}

.fw-bold {
    font-weight: 700;
}

/* 9. FAQ Section / Accordion Style (using details) */
.faq-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-item summary {
    padding: 1.25rem 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    font-size: 1.5rem;
    font-weight: 300;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-item-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-secondary);
}

/* 10. Blog Listing & Article Page */
.blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    display: flex;
    gap: 1rem;
}

.blog-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.blog-card p {
    font-size: 0.95rem;
    flex-grow: 1;
}

/* Article */
.article-container {
    max-width: 800px;
    margin: 4rem auto;
}

.article-header {
    margin-bottom: 3rem;
}

.article-header h1 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.article-body {
    font-size: 1.125rem;
    line-height: 1.8;
}

.article-body h2 {
    font-size: 1.75rem;
    margin: 2.5rem 0 1.25rem 0;
}

.article-body h3 {
    font-size: 1.4rem;
    margin: 2rem 0 1rem 0;
}

.article-body ul, .article-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-body li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.article-body blockquote {
    border-left: 4px solid var(--color-accent);
    padding: 1rem 1.5rem;
    background-color: var(--bg-secondary);
    margin: 2rem 0;
    font-style: italic;
}

.article-body blockquote p {
    margin-bottom: 0;
}

/* Yazar Bloğu (EEAT) */
.author-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: 8px;
    margin-top: 4rem;
    border: 1px solid var(--border-color);
}

.author-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--color-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
    flex-shrink: 0;
}

.author-info h4 {
    margin-bottom: 0.25rem;
}

.author-info p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* 11. Footer & Disclaimer */
.main-footer {
    background-color: var(--color-primary-dark);
    color: #cbd5e1;
    padding: 5rem 0 2rem 0;
    border-top: 1px solid #1e293b;
}

.main-footer h3, .main-footer h4 {
    color: #ffffff;
}

.footer-grid {
    border-bottom: 1px solid #1e293b;
    padding-bottom: 3rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--color-accent);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #94a3b8;
    transition: color var(--transition-speed);
}

.footer-links a:hover {
    color: #ffffff;
}

.disclaimer-box {
    background-color: rgba(245, 158, 11, 0.05);
    border: 1px solid rgba(245, 158, 11, 0.15);
    color: #e2e8f0;
    padding: 1.25rem 1.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    gap: 1rem;
    font-size: 0.875rem;
    color: #64748b;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
    }
}

/* 12. Mobil Sabit Alt Bar (Mobile Fixed Bottom CTA) */
.mobile-fixed-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    z-index: 98;
    display: flex;
    gap: 1rem;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.05);
}

.mobile-fixed-cta .btn {
    flex: 1;
    margin: 0;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
}

@media (min-width: 768px) {
    .mobile-fixed-cta {
        display: none;
    }
    body {
        padding-bottom: 0 !important; /* Reset padding when bar is hidden */
    }
}

/* Accessibility Focus States */
a:focus, button:focus, details:focus, summary:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 4px;
}

/* Chips / Badges for Homepage */
.chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.chip {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.chip:hover {
    border-color: var(--color-whatsapp);
    color: var(--color-whatsapp-hover);
    background-color: rgba(37, 211, 102, 0.05);
    transform: translateY(-1px);
}

/* Packages Styling */
.package-card {
    border: 2px solid var(--color-accent);
    position: relative;
}

.package-badge {
    position: absolute;
    top: 0;
    right: 2rem;
    transform: translateY(-50%);
    background-color: var(--color-accent);
    color: #ffffff;
    padding: 0.25rem 1rem;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 4px;
}

.package-price {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--color-accent);
    margin: 1.5rem 0;
}

.package-price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.package-features {
    list-style: none;
    margin-bottom: 2rem;
}

.package-features li {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.package-features li::before {
    content: "✓";
    color: var(--color-accent);
    font-weight: bold;
}
