/* Bieticaret Premium Stylesheet */

/* CSS Variables */
:root {
    --bg-primary: #faf8f5;
    --bg-secondary: #f4f1ea;
    --card-bg: #ffffff;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;
    --accent-emerald: #0b5e3a;
    --accent-emerald-hover: #07472b;
    --accent-emerald-light: #e6f3ed;
    --accent-gold: #b45309;
    --accent-gold-light: #fef3c7;
    --border-color: #e5e7eb;
    --border-hover: #d1d5db;
    --shadow-sm: 0 1px 3px rgba(17, 24, 39, 0.04);
    --shadow-md: 0 4px 12px rgba(17, 24, 39, 0.06), 0 2px 4px rgba(17, 24, 39, 0.04);
    --shadow-lg: 0 16px 32px rgba(17, 24, 39, 0.08), 0 4px 8px rgba(17, 24, 39, 0.04);
    
    /* Typography */
    --font-ui: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-article: 'Lora', Georgia, Cambria, "Times New Roman", Times, serif;
    
    /* Radii */
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    
    /* Transitions */
    --transition-fast: all 0.15s ease;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Theme Overrides */
:root[data-theme="dark"] {
    --bg-primary: #0b0f17;
    --bg-secondary: #131a26;
    --card-bg: #1b2535;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: #2e3b4e;
    --border-hover: #3d4f68;
    --accent-emerald-light: #06341f;
    --accent-gold-light: #542407;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.7);
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-ui);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Custom Scrollbar for entire site */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Site Header */
.site-header {
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-dot {
    width: 12px;
    height: 12px;
    background-color: var(--accent-emerald);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 4px var(--accent-emerald-light);
}

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    line-height: 1.1;
}

.logo-sub {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent-gold);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Search Wrapper */
.search-wrapper {
    position: relative;
    max-width: 480px;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.1rem;
    height: 1.1rem;
    color: var(--text-secondary);
    pointer-events: none;
    transition: var(--transition-fast);
}

.search-wrapper input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    background-color: var(--bg-primary);
    border-radius: var(--radius-md);
    outline: none;
    color: var(--text-primary);
    transition: var(--transition-smooth);
}

.search-wrapper input:focus {
    border-color: var(--accent-emerald);
    background-color: var(--card-bg);
    box-shadow: 0 0 0 4px var(--accent-emerald-light);
}

.search-wrapper input:focus + .search-icon {
    color: var(--accent-emerald);
}

/* Search Autocomplete Dropdown */
.search-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    width: 100%;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    max-height: 320px;
    overflow-y: auto;
    padding: 0.5rem 0;
    transition: var(--transition-fast);
}

.search-dropdown-item {
    display: flex;
    flex-direction: column;
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    transition: var(--transition-fast);
    border-bottom: 1px solid var(--bg-secondary);
}

.search-dropdown-item:last-of-type {
    border-bottom: none;
}

.search-dropdown-item:hover {
    background-color: var(--bg-secondary);
}

.search-dropdown-item .item-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.search-dropdown-item .item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.search-dropdown-item .item-cat {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.65rem;
}

.search-dropdown-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background-color: var(--bg-secondary);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-emerald);
    cursor: pointer;
    transition: var(--transition-fast);
    border-top: 1px solid var(--border-color);
}

.search-dropdown-footer:hover {
    background-color: var(--accent-emerald-light);
}

.search-dropdown-empty {
    padding: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Main Layout */
.main-layout {
    max-width: 1280px;
    margin: 2.5rem auto;
    padding: 0 2rem;
}

/* Bento Grid */
.bento-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
}

/* Bento Cards */
.bento-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.bento-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Hero Card (Spans 2 columns, 3 rows) */
.bento-hero {
    grid-column: span 2;
    grid-row: span 3;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    border: none;
    justify-content: flex-start;
    gap: 1.5rem;
}

.bento-hero:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.bento-hero h2 {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.bento-hero p {
    color: #94a3b8;
    font-size: 1.05rem;
    font-weight: 400;
}

.hero-features-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hero-features-list li {
    font-size: 0.9rem;
    color: #cbd5e1;
    line-height: 1.4;
    position: relative;
    padding-left: 1.5rem;
}

.hero-features-list li strong {
    color: #ffffff;
}

.hero-features-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #34d399; /* Emerald green checkmark */
    font-weight: bold;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid #334155;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.stat-lbl {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

/* Badges */
.badge {
    align-self: flex-start;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-sm);
}

.badge-accent {
    background-color: var(--accent-gold-light);
    color: var(--accent-gold);
}

/* Category Cards */
.bento-category {
    cursor: pointer;
}

.bento-category:hover {
    border-color: var(--accent-emerald);
}

.cat-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.cat-icon {
    font-size: 1.5rem;
}

.bento-category h3 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.bento-category p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.cat-count {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-emerald);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-top: auto;
}

/* Calculator Card (Spans 2 columns) */
.bento-calculator {
    grid-column: span 2;
    gap: 1rem;
}

.card-title-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.widget-badge {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-gold);
    background-color: var(--accent-gold-light);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.widget-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.calc-form {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 0.5rem 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.form-group select {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 600;
    outline: none;
    background-color: var(--bg-primary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.form-group select:focus {
    border-color: var(--accent-emerald);
    background-color: var(--card-bg);
}

.calc-result {
    background-color: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.result-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.result-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-emerald);
    letter-spacing: -0.02em;
}

.result-details {
    width: 100%;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    border-top: 1px dashed var(--border-color);
    padding-top: 0.5rem;
}

/* Simulator Card (Spans 2 columns) */
.bento-simulator {
    grid-column: span 2;
    gap: 1rem;
}

/* Break-even & Incentive Cards (Spans 2 columns) */
.bento-breakeven {
    grid-column: span 2;
}

.bento-incentive {
    grid-column: span 2;
}

.sim-inputs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.5rem;
}

.sim-control {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.sim-label-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 700;
}

.control-label {
    color: var(--text-secondary);
}

.control-val {
    color: var(--text-primary);
}

/* Custom Styled Range Slider */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-emerald);
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    background: var(--accent-emerald-hover);
}

.sim-output {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin-top: auto;
}

.sim-metric {
    display: flex;
    flex-direction: column;
}

.metric-lbl {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.metric-val {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.sim-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    max-width: 55%;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-safe {
    background-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.status-warning {
    background-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.status-danger {
    background-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

/* Filters Section */
.filters-section {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.filter-tab {
    font-family: var(--font-ui);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    background: none;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-tab:hover {
    color: var(--text-primary);
    background-color: var(--bg-secondary);
}

.filter-tab.active {
    color: var(--accent-emerald);
    background-color: var(--accent-emerald-light);
    border-color: transparent;
}

.search-meta {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 5rem;
}

.article-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 240px;
    transition: var(--transition-smooth);
}

.article-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-right: 2.2rem;
}

.card-cat-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

/* Category colors */
.cat-official {
    background-color: #eff6ff;
    color: #1d4ed8;
}
.cat-finance {
    background-color: #ecfdf5;
    color: #047857;
}
.cat-commerce {
    background-color: #fdf2f8;
    color: #be185d;
}
.cat-growth {
    background-color: #fff7ed;
    color: #c2410c;
}
.cat-tax {
    background-color: #fef3c7;
    color: #b45309;
}
.cat-operation {
    background-color: #f5f3ff;
    color: #6d28d9;
}

.card-read-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.article-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.article-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.btn-read {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-emerald);
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: var(--transition-fast);
}

.btn-read:hover {
    color: var(--accent-emerald-hover);
    transform: translateX(3px);
}

/* Load More Section */
.load-more-container {
    display: flex;
    justify-content: center;
    margin: 2rem 0 5rem;
}

.btn-load-more {
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.85rem 2rem;
    color: var(--accent-emerald);
    background-color: var(--card-bg);
    border: 1.5px solid var(--accent-emerald);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.btn-load-more:hover {
    color: #ffffff;
    background-color: var(--accent-emerald);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-load-more:active {
    transform: translateY(0);
}

/* Site Footer */
.site-footer {
    background-color: #0b0f19;
    color: #9ca3af;
    padding: 5rem 2rem 3rem;
    border-top: 1px solid var(--border-color);
    font-family: var(--font-ui);
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1fr 1.2fr;
    gap: 4rem;
    margin-bottom: 3.5rem;
}

.footer-brand-col {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo h4 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.03em;
}

.logo-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-emerald);
    border-radius: 50%;
}

.footer-desc {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #9ca3af;
}

.footer-col h5 {
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background-color: var(--accent-gold);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-links a {
    color: #9ca3af;
    font-size: 0.85rem;
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 4px;
}

.footer-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-info-list li {
    font-size: 0.85rem;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-info-list li span {
    color: var(--accent-emerald);
    font-weight: 700;
}

.footer-divider {
    height: 1px;
    background-color: #1f2937;
    margin-bottom: 2.5rem;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.copyright {
    font-size: 0.85rem;
    color: #f3f4f6;
    font-weight: 600;
}

.footer-bottom .disclaimer {
    font-size: 0.72rem;
    line-height: 1.5;
    color: #6b7280;
}

.footer-bottom .disclaimer strong {
    color: #9ca3af;
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .site-footer {
        padding: 4rem 1.5rem 2.5rem;
    }
}



/* Dialog Slide-over Drawer (Right Side) */
dialog {
    border: none;
    background-color: var(--card-bg);
    width: 100%;
    max-width: 640px;
    height: 100%;
    max-height: 100vh;
    position: fixed;
    top: 0;
    right: 0;
    left: auto; /* Force it on the right side */
    margin: 0;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0,0,0,0.15);
    
    /* Sliding Animation variables */
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), display 0.3s allow-discrete, overlay 0.3s allow-discrete;
}

dialog[open] {
    transform: translateX(0);
}

@starting-style {
    dialog[open] {
        transform: translateX(100%);
    }
}

dialog::backdrop {
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease, display 0.3s allow-discrete, overlay 0.3s allow-discrete;
}

dialog[open]::backdrop {
    opacity: 1;
}

@starting-style {
    dialog[open]::backdrop {
        opacity: 0;
    }
}

/* Drawer Inner Layout */
.drawer-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.drawer-read-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.btn-close-drawer {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-close-drawer:hover {
    background-color: var(--border-color);
}

.btn-close-drawer svg {
    width: 18px;
    height: 18px;
}

.drawer-scroll-container {
    padding: 2.5rem 2rem;
    overflow-y: auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.drawer-title {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: var(--text-primary);
}

/* Drawer Rich Content (Lora font for premium reading) */
.drawer-body {
    font-family: var(--font-article);
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--text-primary);
}

.article-rich-content h3 {
    font-family: var(--font-ui);
    font-size: 1.35rem;
    font-weight: 800;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.article-rich-content p {
    margin-bottom: 1.25rem;
}

.article-rich-content ul, 
.article-rich-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-rich-content li {
    margin-bottom: 0.5rem;
}

.takeaway-box {
    background-color: var(--bg-secondary);
    border-left: 4px solid var(--accent-emerald);
    padding: 1.25rem 1.5rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-family: var(--font-ui);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.takeaway-box strong {
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--accent-emerald);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.takeaway-box ul {
    margin-bottom: 0;
    padding-left: 1.25rem;
}

.takeaway-box li {
    margin-bottom: 0.35rem;
}

/* Cost table styled */
.maliyet-tablosu {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0 2rem;
    font-family: var(--font-ui);
    font-size: 0.85rem;
}

.maliyet-tablosu th,
.maliyet-tablosu td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.maliyet-tablosu th {
    font-weight: 700;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.03em;
}

.maliyet-tablosu td {
    font-weight: 500;
    color: var(--text-secondary);
}

.maliyet-tablosu tr:hover td {
    color: var(--text-primary);
}

/* Details/Summary Accordions */
.accordion-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
    font-family: var(--font-ui);
    overflow: hidden;
}

.accordion-item[open] {
    border-color: var(--accent-emerald);
}

.accordion-item summary {
    padding: 0.85rem 1.25rem;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    cursor: pointer;
    outline: none;
    transition: var(--transition-fast);
}

.accordion-item summary:hover {
    background-color: var(--border-color);
}

.accordion-item[open] summary {
    background-color: var(--accent-emerald-light);
    color: var(--accent-emerald);
    border-bottom: 1px solid var(--border-color);
}

.accordion-content {
    padding: 1rem 1.25rem;
    font-family: var(--font-article);
    font-size: 0.95rem;
    background-color: var(--card-bg);
    color: var(--text-secondary);
}

.accordion-content p:last-child {
    margin-bottom: 0;
}

/* Actions in Drawer */
.drawer-actions {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    margin-top: auto;
}

.btn-print {
    width: 100%;
    padding: 0.85rem 1rem;
    font-family: var(--font-ui);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--card-bg);
    background-color: var(--accent-emerald);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition-fast);
}

.btn-print:hover {
    background-color: var(--accent-emerald-hover);
}

.btn-icon {
    width: 1.1rem;
    height: 1.1rem;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .bento-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .bento-hero {
        grid-row: span 2;
    }
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    .search-wrapper {
        max-width: 100%;
    }
    .bento-container {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .bento-hero {
        grid-column: span 1;
        grid-row: span 1;
    }
    .bento-calculator {
        grid-column: span 1;
    }
    .bento-simulator {
        grid-column: span 1;
    }
    .bento-breakeven {
        grid-column: span 1;
    }
    .bento-incentive {
        grid-column: span 1;
    }
    .bento-checklist {
        grid-column: span 1 !important;
    }
    .calc-form {
        grid-template-columns: 1fr;
    }
    .articles-grid {
        grid-template-columns: 1fr;
    }
    .main-layout {
        padding: 0 1rem;
        margin: 1.5rem auto;
    }
    .drawer-scroll-container {
        padding: 1.5rem;
    }
}

/* Esnaf Vergi Takvimi Styles */
.tax-calendar-section {
    margin: 4rem 0;
}

.calendar-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    gap: 2rem;
}

.calendar-title-group h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.calendar-title-group p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.calendar-toggle-group {
    display: flex;
    gap: 0.5rem;
    background-color: var(--bg-secondary);
    padding: 0.25rem;
    border-radius: var(--radius-sm);
}

.calendar-toggle-btn {
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-fast);
    color: var(--text-secondary);
}

.calendar-toggle-btn.active {
    background-color: var(--card-bg);
    color: var(--text-primary);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.timeline-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.timeline-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    background-color: var(--bg-primary);
    transition: var(--transition-fast);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.timeline-card:hover {
    border-color: var(--accent-emerald);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(11, 94, 58, 0.05);
}

.timeline-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.timeline-month {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.timeline-day {
    font-size: 0.75rem;
    font-weight: 700;
    background-color: #fee2e2;
    color: #ef4444;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.timeline-card h4 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.timeline-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0;
}

.timeline-expandable {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-card.expanded .timeline-expandable {
    max-height: 250px;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--border-color);
}

.timeline-desc {
    font-size: 0.8rem !important;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.timeline-tip {
    font-size: 0.75rem !important;
    color: var(--accent-emerald);
    font-weight: 700;
    background-color: var(--accent-emerald-light);
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    line-height: 1.3;
}

/* Cost Calculator PDF Print Button */
.btn-calc-pdf {
    margin-top: 1.25rem;
    width: 100%;
    background-color: var(--card-bg);
    color: var(--accent-emerald);
    border: 1px solid var(--accent-emerald);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.btn-calc-pdf:hover {
    background-color: var(--accent-emerald-light);
}

/* Reader progress bar & controls */
.drawer-progress-container {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--bg-secondary);
    z-index: 100;
    margin-top: -1px;
}

.drawer-progress-bar {
    height: 100%;
    width: 0%;
    background-color: var(--accent-emerald);
    transition: width 0.1s ease-out;
}

.resizer-btn {
    transition: var(--transition-fast);
    color: var(--text-primary);
}

.resizer-btn:hover {
    background-color: var(--border-color) !important;
    color: var(--text-primary);
}

.btn-control-fav svg {
    transition: transform 0.2s ease;
}

.btn-control-fav:hover svg {
    transform: scale(1.1);
}

.btn-control-fav.active svg {
    fill: var(--accent-gold) !important;
    color: var(--accent-gold) !important;
}

/* Card Favorite Button */
.article-card {
    position: relative;
}

.btn-card-fav {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 10;
    color: var(--text-secondary);
}

.btn-card-fav:hover {
    background-color: var(--bg-secondary);
    color: var(--accent-gold);
    border-color: var(--accent-gold);
    transform: scale(1.05);
}

.btn-card-fav.active {
    color: var(--accent-gold);
    background-color: var(--bg-secondary);
    border-color: var(--accent-gold);
}

.btn-card-fav svg {
    width: 14px;
    height: 14px;
    fill: none;
    pointer-events: none;
}

.btn-card-fav.active svg {
    fill: var(--accent-gold);
}

/* Responsive updates for Timeline */
@media (max-width: 1024px) {
    .timeline-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .calendar-header {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 640px) {
    .timeline-container {
        grid-template-columns: 1fr;
    }
}

/* Phase 6.0 Checklist & Share Styling */
.checklist-item.completed {
    border-color: var(--accent-emerald) !important;
    background-color: #f0fdf4 !important;
}

:root[data-theme="dark"] .checklist-item.completed {
    background-color: var(--accent-emerald-light) !important;
}

.checklist-item.completed h4 {
    color: var(--accent-emerald);
}

.btn-read-step:hover {
    background-color: var(--accent-emerald) !important;
    color: white !important;
}

.btn-share-wa:hover {
    background-color: #1ebd56 !important;
    transform: translateY(-1px);
}

.btn-share-copy:hover {
    background-color: var(--border-color) !important;
    transform: translateY(-1px);
}

/* Print Styling */
@media print {
    /* Hide all main sibling elements of body to prevent blank pages */
    .site-header, .main-layout, .site-footer {
        display: none !important;
    }

    body {
        background-color: #ffffff !important;
        color: #111827 !important;
        padding: 0 !important;
        margin: 0 !important;
        font-size: 11pt !important;
    }

    dialog[open] {
        display: block !important;
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
        overflow: visible !important;
    }

    .btn-close-drawer, .drawer-actions {
        display: none !important;
    }

    .drawer-scroll-container {
        padding: 0 !important;
        overflow: visible !important;
        max-height: none !important;
    }
}

/* Phase 7.1 Decision Support Center Styling */
.bento-decision-center {
    background: var(--card-bg);
}
.decision-tabs::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari and Opera */
}
.decision-tabs {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.decision-tabs .tab-btn.active {
    background-color: var(--accent-emerald) !important;
    color: white !important;
    border-color: var(--accent-emerald) !important;
}
.decision-tabs .tab-btn:hover:not(.active) {
    border-color: var(--border-hover) !important;
    background-color: var(--bg-secondary) !important;
}

/* Expert Quote Styling inside drawer */
.expert-quote {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: var(--radius-sm);
    background-color: var(--accent-emerald-light);
    border-left: 4px solid var(--accent-emerald);
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-primary);
}
.expert-quote strong {
    color: var(--accent-emerald);
    display: block;
    margin-bottom: 0.25rem;
}

/* Timeline ICS button style */
.btn-ics-export {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: var(--transition-fast);
    margin-top: 0.5rem;
}
.btn-ics-export:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
    background-color: var(--bg-secondary);
}

/* Dynamic Admin blockquote styling */
.uzman-alintisi {
    background-color: var(--bg-secondary);
    border-left: 4px solid var(--accent-emerald);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--text-primary);
}
.uzman-alintisi p {
    margin-bottom: 0.5rem !important;
}
.uzman-alintisi cite {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    display: block;
}
