/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Europa.Tips Brand Colors */
    --orange: #d97c34;
    --golden: #f4a950;
    --purple: #9370a8;
    --peach: #ffb89d;
    --navy: #1e3a5f;

    /* Primary Colors */
    --primary-color: #d97c34;
    --primary-dark: #c46a28;
    --accent-color: #9370a8;
    --accent-dark: #7d5d8f;

    /* Neutrals */
    --cream: #faf8f3;
    --soft-white: #ffffff;
    --text-color: #333333;
    --text-light: #666666;
    --border-color: #e5e5e5;
    --bg-light: #f8f8f8;
    --white: #ffffff;

    /* Shadows & Effects */
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-hover: 0 8px 24px rgba(217, 124, 52, 0.2);
    --radius: 8px;
    --transition: all 0.3s ease;

    /* Dark Mode Variables */
    --bg-dark: #121212;
    --bg-dark-secondary: #1e1e1e;
    --bg-dark-tertiary: #2d2d2d;
    --text-dark-primary: #e4e4e4;
    --text-dark-secondary: #a0a0a0;
    --border-dark: #3d3d3d;
}

/* ==================== DARK MODE ==================== */
[data-theme="dark"] {
    --cream: #1e1e1e;
    --soft-white: #121212;
    --text-color: #e4e4e4;
    --text-light: #a0a0a0;
    --border-color: #3d3d3d;
    --bg-light: #121212;
    --white: #1e1e1e;

    --shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 8px 24px rgba(217, 124, 52, 0.3);

    /* Keep brand colors vibrant in dark mode */
    --primary-color: #e8944a;
    --primary-dark: #d97c34;
}

[data-theme="dark"] body {
    background-color: var(--bg-light);
    color: var(--text-color);
}

[data-theme="dark"] .header {
    background: var(--white);
    border-bottom-color: var(--primary-color);
}

[data-theme="dark"] .main-nav .nav-link {
    color: var(--text-color);
}

[data-theme="dark"] .dropdown-menu {
    background: var(--bg-dark-secondary);
    border-color: var(--border-dark);
}

[data-theme="dark"] .dropdown-menu a {
    color: var(--text-color);
}

[data-theme="dark"] .dropdown-menu a:hover {
    background: var(--bg-dark-tertiary);
}

[data-theme="dark"] .post-card,
[data-theme="dark"] .category-card,
[data-theme="dark"] .author-card,
[data-theme="dark"] .related-post-card,
[data-theme="dark"] .random-post-card,
[data-theme="dark"] .favorite-card {
    background: var(--white);
}

[data-theme="dark"] .post-card h3 a,
[data-theme="dark"] .related-post-card h3 a,
[data-theme="dark"] .random-post-card h3 a {
    color: var(--text-color);
}

[data-theme="dark"] .post-single {
    background: var(--white);
}

[data-theme="dark"] .post-body {
    color: var(--text-color);
}

[data-theme="dark"] .post-body h2,
[data-theme="dark"] .post-body h3,
[data-theme="dark"] .post-body h4 {
    color: var(--text-color);
}

[data-theme="dark"] .post-body a {
    color: var(--primary-color);
}

[data-theme="dark"] .post-body blockquote {
    background: var(--bg-dark-tertiary);
    border-left-color: var(--primary-color);
}

[data-theme="dark"] .post-body code {
    background: var(--bg-dark-tertiary);
    color: #f8c555;
}

[data-theme="dark"] .post-body pre {
    background: var(--bg-dark-secondary);
}

[data-theme="dark"] .toc {
    background: var(--bg-dark-secondary);
    border-color: var(--border-dark);
}

[data-theme="dark"] .toc-title {
    color: var(--text-color);
}

[data-theme="dark"] .toc-list a {
    color: var(--text-light);
}

[data-theme="dark"] .faq-item {
    background: var(--bg-dark-secondary);
    border-color: var(--border-dark);
}

[data-theme="dark"] .faq-question h3 {
    color: var(--text-color);
}

[data-theme="dark"] .faq-answer {
    color: var(--text-light);
}

[data-theme="dark"] .footer {
    background: var(--bg-dark-secondary);
    border-top-color: var(--border-dark);
}

[data-theme="dark"] .footer-bottom {
    background: var(--bg-dark);
    border-top-color: var(--border-dark);
}

[data-theme="dark"] .search-overlay {
    background: rgba(0, 0, 0, 0.95);
}

[data-theme="dark"] .search-input {
    background: var(--bg-dark-secondary);
    border-color: var(--border-dark);
    color: var(--text-color);
}

[data-theme="dark"] .search-results {
    background: var(--bg-dark-secondary);
}

[data-theme="dark"] .search-result-item {
    border-bottom-color: var(--border-dark);
}

[data-theme="dark"] .search-result-item:hover {
    background: var(--bg-dark-tertiary);
}

[data-theme="dark"] .pagination a,
[data-theme="dark"] .pagination span {
    background: var(--bg-dark-secondary);
    color: var(--text-color);
    border-color: var(--border-dark);
}

[data-theme="dark"] .tag,
[data-theme="dark"] .category-badge {
    background: var(--bg-dark-tertiary);
    color: var(--text-color);
}

[data-theme="dark"] .back-to-top {
    background: var(--bg-dark-secondary);
    border-color: var(--border-dark);
}

[data-theme="dark"] .favorite-btn {
    background: var(--bg-dark-secondary);
}

[data-theme="dark"] .newsletter-form input {
    background: var(--bg-dark-tertiary);
    border-color: var(--border-dark);
    color: var(--text-color);
}

[data-theme="dark"] .share-btn {
    background: var(--bg-dark-secondary);
    color: var(--text-color);
}

[data-theme="dark"] .author-info {
    background: var(--bg-dark-secondary);
}

[data-theme="dark"] .mobile-nav-overlay {
    background: rgba(0, 0, 0, 0.8);
}

[data-theme="dark"] img {
    opacity: 0.9;
}

[data-theme="dark"] img:hover {
    opacity: 1;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

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

/* ==================== LAYOUT ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== HEADER ==================== */
.header {
    background: var(--white);
    border-bottom: 3px solid var(--orange);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-wrapper {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    padding: 0;
    position: relative;
    gap: 0;
}

/* Logo - Sol tarafta, her iki satırı da kapsıyor */
.logo {
    grid-column: 1;
    grid-row: 1 / 3;
    padding: 1rem 1rem 1rem 0;
    align-self: center;
}

.logo img {
    height: 60px;
    width: auto;
    display: block;
}

/* Dil seçimi - Sağ üstte */
.nav-lang {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-self: end;
    padding: 0.75rem 0;
}

/* Menü - Sağ altta */
.main-nav {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    align-items: center;
    justify-self: end;
    gap: 1.5rem;
    padding: 0.75rem 0 1rem 0;
}

@media (max-width: 1200px) {
    .main-nav {
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.9rem;
    }
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
}

.nav-link:hover {
    color: var(--orange);
}

.nav-link.active {
    color: var(--orange);
}

.nav-link svg {
    flex-shrink: 0;
}

.nav-link span {
    display: inline-block;
    font-size: inherit;
    color: inherit;
    line-height: inherit;
}

/* Search icon - hide text on desktop */
.nav-search span {
    display: none;
}

@media (max-width: 1024px) {
    .nav-search span {
        display: inline-block;
    }
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-toggle svg.arrow {
    margin-left: 0.2rem;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-toggle svg.arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 1rem;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.7rem 1.2rem;
    color: var(--text-color);
    font-size: 0.9rem;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.dropdown-menu a:hover {
    background: var(--bg-light);
    border-left-color: var(--orange);
    color: var(--orange);
}

.dropdown-menu a.active {
    background: rgba(217, 124, 52, 0.1);
    border-left-color: var(--orange);
    color: var(--orange);
    font-weight: 600;
}

/* Categories Dropdown - Two Column Compact */
.categories-dropdown .categories-menu {
    min-width: 580px !important;
    padding: 0 !important;
    right: 0;
    left: auto;
}

.categories-menu .all-categories-link {
    display: block !important;
    padding: 0.4rem 1rem !important;
    background: linear-gradient(135deg, var(--orange), var(--golden)) !important;
    color: var(--white) !important;
    font-weight: 600;
    border-left: none !important;
    text-align: center;
}

.categories-menu .all-categories-link:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--orange)) !important;
    color: var(--white) !important;
}

.categories-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    padding: 0.2rem 0 !important;
    gap: 0 !important;
}

.categories-grid a {
    display: block !important;
    padding: 0.5rem 1rem !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    border-left: 3px solid transparent !important;
    border-bottom: none !important;
    line-height: 1.4 !important;
    color: var(--text-color) !important;
}

.categories-grid a:hover {
    background: var(--bg-light) !important;
    color: var(--orange) !important;
    border-left-color: var(--orange) !important;
}

.categories-grid a.active {
    background: rgba(217, 124, 52, 0.1) !important;
    border-left-color: var(--orange) !important;
    color: var(--orange) !important;
}

[data-theme="dark"] .categories-menu .all-categories-link {
    background: linear-gradient(135deg, var(--primary-color), #b85a1a) !important;
}

[data-theme="dark"] .categories-menu .all-categories-link:hover {
    background: linear-gradient(135deg, #b85a1a, var(--primary-color)) !important;
}

/* Language Selection - Desktop */
.nav-lang {
    position: relative;
}

.nav-lang .dropdown-toggle {
    display: none;
}

.nav-lang .dropdown-menu {
    position: static;
    display: flex;
    flex-direction: row;
    gap: 0.4rem;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    background: transparent;
    border-radius: 0;
}

.nav-lang .dropdown-menu a {
    padding: 0.4rem 0.7rem;
    border: 1.5px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    background: var(--white);
    transition: var(--transition);
    min-width: 38px;
}

.nav-lang .dropdown-menu a:hover {
    border-color: var(--orange);
    background: var(--bg-light);
    color: var(--orange);
}

.nav-lang .dropdown-menu a.active {
    border-color: var(--orange);
    background: var(--orange);
    color: var(--white);
}

/* Mobile language selector - hidden on desktop */
.nav-lang-mobile {
    display: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: center;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--orange);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ==================== MAIN CONTENT ==================== */
main {
    padding: 0 0 4rem;
}

/* ==================== HERO SECTION ==================== */
.hero-section {
    background: linear-gradient(-45deg, var(--orange), var(--golden), #ff8c42, var(--orange));
    background-size: 400% 400%;
    animation: gradient-animation 15s ease infinite;
    padding: 2.5rem 0 3rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(217, 124, 52, 0.25);
}

@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Dekoratif floating elementler */
.hero-section::before,
.hero-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 20s ease-in-out infinite;
}

.hero-section::before {
    width: 200px;
    height: 200px;
    background: white;
    top: -80px;
    right: -80px;
    animation-delay: -5s;
}

.hero-section::after {
    width: 150px;
    height: 150px;
    background: white;
    bottom: -60px;
    left: -60px;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-30px) rotate(120deg); }
    66% { transform: translateY(-15px) rotate(240deg); }
}

.hero-section .container {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    color: var(--white);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    line-height: 1.3;
    animation: fadeInUp 0.6s ease-out;
}

.hero-section p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.6s ease-out 0.15s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-search {
    max-width: 550px;
    margin: 0 auto 1.5rem;
    position: relative;
    animation: fadeInUp 0.6s ease-out 0.3s backwards;
}

.hero-search input {
    width: 100%;
    padding: 1rem 3.5rem 1rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.98);
}

.hero-search input:focus {
    outline: none;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
    background: white;
}

.hero-search button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--purple);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(95, 39, 205, 0.3);
    font-size: 0.9rem;
}

.hero-search button:hover {
    background: #4a1f9f;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 6px 20px rgba(95, 39, 205, 0.5);
}

/* Hero Stats - İstatistik kartları */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
    animation: fadeInUp 0.6s ease-out 0.4s backwards;
}

.hero-stat {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.hero-stat:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.hero-stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    display: block;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.hero-stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-top: 0.2rem;
}

/* ==================== POSTS GRID ==================== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.post-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.post-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.post-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-light);
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-content {
    padding: 1.5rem;
}

.post-title {
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.post-title a {
    color: var(--text-color);
}

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

.post-excerpt {
    color: var(--text-light);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.post-meta {
    color: var(--text-light);
    font-size: 0.875rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.post-categories a {
    color: var(--primary-color);
    font-weight: 500;
}

/* ==================== IN-CONTENT ADS ==================== */
.in-content-ad {
    margin: 2rem auto;
    padding: 1rem 0;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    clear: both;
}

.in-content-ad ins {
    max-width: 100%;
}

/* Add subtle visual separation */
.in-content-ad::before {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background: var(--border-color);
    margin: 0 auto 1rem;
}

.in-content-ad::after {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background: var(--border-color);
    margin: 1rem auto 0;
}

@media (max-width: 768px) {
    .in-content-ad {
        margin: 1.5rem -1rem;
        padding: 0.75rem 0;
        width: calc(100% + 2rem);
    }
}

/* ==================== RELATED CONTENT SECTION ==================== */
.related-content-section {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 2px solid var(--border-color);
}

.related-title {
    font-size: 1.5rem;
    color: var(--purple);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.related-title::before {
    content: '';
    width: 4px;
    height: 1.5rem;
    background: linear-gradient(180deg, var(--orange), var(--purple));
    border-radius: 2px;
}

.related-content-section .posts-grid {
    margin-top: 0;
}

.related-content-section .post-card.related-card {
    opacity: 0.95;
    border: 1px dashed var(--border-color);
}

.related-content-section .post-card.related-card:hover {
    opacity: 1;
    border-color: var(--primary-color);
}

[data-theme="dark"] .related-content-section {
    border-top-color: var(--border-dark);
}

[data-theme="dark"] .related-content-section .post-card.related-card {
    border-color: var(--border-dark);
}

/* ==================== TAG EMPTY STATE ==================== */
.tag-empty-state {
    text-align: center;
    padding: 3rem 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.tag-search-box {
    max-width: 500px;
    margin: 0 auto 1.5rem;
}

.tag-search-box h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-light);
    font-weight: 400;
}

.tag-empty-state .error-home-btn {
    margin-bottom: 0;
}

.tag-related-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: left;
}

.tag-related-section h2 {
    font-size: 1.25rem;
    color: var(--purple);
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}

.tag-related-section .posts-grid {
    margin-top: 0;
}

[data-theme="dark"] .tag-related-section {
    border-top-color: var(--border-dark);
}

/* ==================== SINGLE POST ==================== */
.post-single {
    background: white;
    border-radius: 12px;
    padding: 3rem;
    max-width: 1200px;
    margin: 2rem auto;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.post-header h1 {
    font-size: 2.8rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: var(--purple);
    font-weight: 700;
}

.post-header .post-meta {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
    font-size: 0.95rem;
    color: #666;
}

.post-meta a {
    color: var(--orange);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-meta a:hover {
    color: var(--purple);
}

.post-featured-image {
    margin-bottom: 3rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.post-body {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #333;
}

/* Headings */
.post-body h1 {
    font-size: 2.5rem;
    margin: 3rem 0 1.5rem;
    color: var(--purple);
    font-weight: 700;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--orange);
}

.post-body h2 {
    font-size: 2rem;
    margin: 2.5rem 0 1.25rem;
    color: var(--purple);
    font-weight: 700;
    position: relative;
    padding-left: 1.5rem;
}

.post-body h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--purple) 0%, var(--orange) 100%);
    border-radius: 2px;
}

.post-body h3 {
    font-size: 1.6rem;
    margin: 2rem 0 1rem;
    color: var(--orange);
    font-weight: 600;
}

.post-body h4 {
    font-size: 1.35rem;
    margin: 1.75rem 0 0.875rem;
    color: var(--purple);
    font-weight: 600;
}

.post-body h5 {
    font-size: 1.2rem;
    margin: 1.5rem 0 0.75rem;
    color: #333;
    font-weight: 600;
}

.post-body h6 {
    font-size: 1.1rem;
    margin: 1.25rem 0 0.625rem;
    color: #555;
    font-weight: 600;
}

/* Paragraphs */
.post-body p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* Lists */
.post-body ul,
.post-body ol {
    margin-bottom: 2rem;
    padding-left: 2.5rem;
}

.post-body ul {
    list-style-type: none;
}

.post-body ul li {
    position: relative;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
}

.post-body ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 8px;
    height: 8px;
    background: var(--orange);
    border-radius: 50%;
}

.post-body ol {
    counter-reset: item;
}

.post-body ol li {
    margin-bottom: 0.75rem;
    counter-increment: item;
    position: relative;
    padding-left: 1.5rem;
}

.post-body ol li::marker {
    color: var(--orange);
    font-weight: 700;
}

/* Images */
.post-body img {
    max-width: 100%;
    height: auto;
    margin: 2.5rem auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* WordPress Captions */
.post-body figure.wp-caption,
.post-body .wp-caption {
    margin: 2.5rem auto;
    text-align: center;
    max-width: 100% !important;
}

.post-body figure.wp-caption.alignleft {
    float: left;
    margin-right: 2rem;
    margin-left: 0;
}

.post-body figure.wp-caption.alignright {
    float: right;
    margin-left: 2rem;
    margin-right: 0;
}

.post-body figure.wp-caption.aligncenter {
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.post-body .wp-caption img {
    width: 100%;
    height: auto;
    margin: 0;
    border-radius: 8px;
}

.post-body .wp-caption-text,
.post-body figcaption.wp-caption-text {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: #666;
    font-style: italic;
    line-height: 1.6;
    padding: 0 1rem;
}

/* Blockquotes */
.post-body blockquote {
    border-left: 4px solid var(--orange);
    padding: 1.5rem 2rem;
    margin: 2.5rem 0;
    background: #faf5f0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #555;
}

.post-body blockquote p:last-child {
    margin-bottom: 0;
}

/* Links */
.post-body a {
    color: var(--orange);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.post-body a:hover {
    color: var(--purple);
}

/* Auto-linked tags */
.post-body a.auto-tag-link {
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px dashed var(--orange);
    transition: all 0.3s ease;
}

.post-body a.auto-tag-link:hover {
    color: var(--orange);
    border-bottom-style: solid;
}

/* Code */
.post-body code {
    background: #f5f5f5;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.post-body pre {
    background: #f5f5f5;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
}

.post-body pre code {
    background: none;
    padding: 0;
}

/* Tables */
.post-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 2.5rem 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.post-body table thead {
    background: linear-gradient(90deg, var(--purple) 0%, var(--orange) 100%);
}

.post-body table thead th {
    color: white;
    font-weight: 600;
    text-align: left;
    padding: 1rem 1.25rem;
    font-size: 1rem;
}

.post-body table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.post-body table tbody tr:hover {
    background-color: #faf5f0;
}

.post-body table tbody tr:last-child {
    border-bottom: none;
}

.post-body table td {
    padding: 1rem 1.25rem;
    color: #333;
}

.post-body table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.post-body table tbody tr:nth-child(even):hover {
    background-color: #faf5f0;
}

/* Responsive tables */
.post-body table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .post-body table {
        font-size: 0.9rem;
    }

    .post-body table thead th,
    .post-body table td {
        padding: 0.75rem 1rem;
    }
}

/* Categories Section */
.post-categories-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #f0f0f0;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.post-categories-section strong {
    color: var(--purple);
    font-size: 1rem;
}

.category-badge {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(90deg, var(--purple) 0%, var(--orange) 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(217, 124, 52, 0.3);
}

/* Tags Section */
.post-tags {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.post-tags strong {
    color: #666;
    font-size: 0.95rem;
}

.tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--purple);
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--orange);
    color: white;
    border-color: var(--orange);
}

/* FAQ Section */
.post-faq-section {
    margin-top: 3rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, #f8f9ff 0%, #fff 100%);
    border-radius: 16px;
    border: 1px solid #e8ebf7;
}

.post-faq-section h2 {
    font-size: 1.75rem;
    color: var(--purple);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--orange);
    display: inline-block;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.faq-item {
    background: white;
    border-radius: 12px;
    border: 1px solid #e8ebf7;
    transition: all 0.3s ease;
    overflow: hidden;
}

.faq-item:hover {
    border-color: var(--orange);
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.1);
}

.faq-item.active {
    border-color: var(--orange);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 1.75rem;
    cursor: pointer;
    user-select: none;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: #faf5f0;
}

.faq-question-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex: 1;
}

.faq-question-content svg {
    flex-shrink: 0;
    margin-top: 0.25rem;
    color: var(--orange);
}

.faq-question h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--purple);
    margin: 0;
    line-height: 1.5;
}

.faq-chevron {
    flex-shrink: 0;
    color: var(--orange);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    opacity: 0;
    padding: 0 1.75rem;
    color: #555;
    line-height: 1.7;
    font-size: 1rem;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
    overflow: hidden;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    opacity: 1;
    padding: 0 1.75rem 1.75rem 1.75rem;
}

.faq-answer strong {
    color: var(--purple);
    font-weight: 600;
}

.faq-answer a {
    color: var(--orange);
    text-decoration: underline;
}

.faq-answer a:hover {
    color: var(--purple);
}

.faq-answer p {
    margin-bottom: 0.75rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .post-faq-section {
        padding: 1.5rem;
    }

    .post-faq-section h2 {
        font-size: 1.5rem;
    }

    .faq-question {
        padding: 1.25rem;
    }

    .faq-question h3 {
        font-size: 1.05rem;
    }

    .faq-answer {
        font-size: 0.95rem;
    }

    .faq-item.active .faq-answer {
        padding: 0 1.25rem 1.25rem 1.25rem;
    }

    .faq-question-content svg {
        width: 16px;
        height: 16px;
    }

    .faq-chevron {
        width: 18px;
        height: 18px;
    }
}

/* Author Section */
.post-author-section {
    margin-top: 3rem;
    padding: 1.75rem 2rem;
    background: linear-gradient(135deg, #faf5f0 0%, #fff 100%);
    border-radius: 12px;
    border: 2px solid #f0f0f0;
}

.post-author-section .author-info {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.post-author-section .author-avatar {
    flex-shrink: 0;
}

.post-author-section .avatar-placeholder,
.post-author-section .avatar-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.post-author-section .avatar-placeholder {
    background: linear-gradient(135deg, var(--purple) 0%, var(--orange) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
}

.post-author-section .avatar-image {
    object-fit: cover;
    border: 3px solid white;
}

.post-author-section .author-details {
    flex: 1;
}

.post-author-section .author-name-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.post-author-section .author-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--purple);
    text-decoration: underline;
    text-decoration-color: var(--purple);
    text-underline-offset: 4px;
    transition: color 0.3s ease;
}

.post-author-section .author-name:hover {
    color: var(--orange);
    text-decoration-color: var(--orange);
}

.post-author-section .verified-badge {
    width: 32px;
    height: 32px;
    background: #2196F3;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(33, 150, 243, 0.3);
    flex-shrink: 0;
}

.post-author-section .author-bio {
    font-size: 0.92rem;
    color: #666;
    line-height: 1.65;
    margin-top: 0.4rem;
    margin-bottom: 0.5rem;
}

.post-author-section .author-bio-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--purple);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: #fff;
    margin-top: 0.4rem;
    box-shadow: 0 2px 8px rgba(147, 112, 168, 0.35);
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.post-author-section .author-bio-toggle:hover {
    background: var(--orange);
    box-shadow: 0 4px 12px rgba(217, 124, 52, 0.4);
}

.post-author-section .author-bio-toggle svg {
    transition: transform 0.25s ease;
}

.post-author-section .author-bio-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.post-author-section .post-dates {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-end;
}

.date-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
}

.date-item.published {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--purple);
}

.date-item.published svg {
    color: var(--purple);
}

.date-item.updated {
    font-size: 0.9rem;
    color: #888;
}

.date-item.updated svg {
    color: #888;
}

.date-item svg {
    flex-shrink: 0;
}

/* Social Share Section */
.post-share {
    margin-top: 3rem;
    padding: 2.5rem;
    background: white;
    border-radius: 12px;
    border: 2px solid var(--orange);
}

.post-share h3 {
    color: var(--purple);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #000; }
.share-btn.linkedin { background: #0a66c2; }
.share-btn.pinterest { background: #e60023; }
.share-btn.bluesky { background: #1185fe; }
.share-btn.mastodon { background: #6364ff; }
.share-btn.reddit { background: #ff4500; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.telegram { background: #0088cc; }
.share-btn.copy-link { background: #666; }

/* Post Rating */
.post-rating {
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #fff9f0 0%, #fff 100%);
    border-radius: 12px;
    border: 2px solid var(--orange);
    text-align: center;
}

.post-rating h3 {
    color: var(--purple);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.rating-stars {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.star-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    transition: transform 0.2s ease;
}

.star-btn svg {
    width: 32px;
    height: 32px;
    stroke: #d4a574;
    fill: transparent;
    transition: all 0.2s ease;
}

.star-btn:hover svg,
.star-btn.active svg,
.star-btn.filled svg {
    fill: var(--orange);
    stroke: var(--orange);
    transform: scale(1.1);
}

.star-btn:hover {
    transform: scale(1.15);
}

.rating-info {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

.rating-average {
    font-weight: 700;
    color: var(--orange);
}

.rating-count {
    color: #888;
}

.rating-thanks {
    color: var(--success);
    font-weight: 600;
    margin-top: 0.5rem;
    transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
    .star-btn svg {
        width: 28px;
        height: 28px;
    }
}

/* Related Posts */
.related-posts,
.random-posts {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.related-posts h2,
.random-posts h2 {
    font-size: 2rem;
    color: var(--purple);
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 700;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.random-posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.related-post-card,
.random-post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.related-post-card:hover,
.random-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(217, 124, 52, 0.15);
    border-color: var(--orange);
}

.related-post-image,
.random-post-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.related-post-image img,
.random-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-post-card:hover .related-post-image img,
.random-post-card:hover .random-post-image img {
    transform: scale(1.05);
}

.related-post-content,
.random-post-content {
    padding: 1.5rem;
}

.related-post-content h3,
.random-post-content h3 {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
    line-height: 1.4;
}

.related-post-content h3 a,
.random-post-content h3 a {
    color: var(--purple);
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-post-content h3 a:hover,
.random-post-content h3 a:hover {
    color: var(--orange);
}

.related-post-content time,
.random-post-content time {
    color: #999;
    font-size: 0.85rem;
}

@media (max-width: 1024px) {
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .random-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .post-author-section {
        padding: 1.5rem;
    }

    .post-author-section .author-info {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
        text-align: center;
    }

    .post-author-section .avatar-placeholder,
    .post-author-section .avatar-image {
        width: 80px;
        height: 80px;
    }

    .post-author-section .avatar-placeholder {
        font-size: 2rem;
    }

    .post-author-section .verified-badge {
        width: 28px;
        height: 28px;
        font-size: 0.95rem;
    }

    .post-author-section .author-name {
        font-size: 1.3rem;
    }

    .post-author-section .author-name-wrapper {
        justify-content: center;
    }

    .post-author-section .post-dates {
        align-items: center;
    }

    .date-item.published {
        font-size: 1rem;
    }

    .post-share {
        padding: 1.5rem;
    }

    .share-buttons {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 0.75rem;
    }

    .share-btn {
        padding: 0.7rem 0.8rem;
        font-size: 0.85rem;
    }

    .related-posts-grid,
    .random-posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .related-post-image,
    .random-post-image {
        height: 180px;
    }
}

/* ==================== ARCHIVE PAGES ==================== */
.archive-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.archive-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.archive-description {
    color: var(--text-light);
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.archive-count {
    color: var(--text-light);
    font-size: 0.875rem;
}

.subscriber-notice {
    font-size: 1rem;
    color: #555;
    background: linear-gradient(135deg, rgba(139,94,156,0.06), rgba(217,124,52,0.06));
    border-left: 3px solid var(--purple);
    padding: 0.9rem 1.2rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.no-posts {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
    font-size: 1.125rem;
}

/* ==================== PAGINATION ==================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.pagination a {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: var(--white);
    border-radius: var(--radius);
    font-weight: 500;
    transition: var(--transition);
}

.pagination a:hover {
    background: var(--primary-dark);
}

.pagination-info {
    color: var(--text-light);
    font-size: 0.9375rem;
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--purple);
    margin-top: 4rem;
    padding: 3rem 0 1.5rem;
    color: var(--white);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.2fr 2fr 1.2fr;
    gap: 3rem;
    margin-bottom: 2.5rem;
}

/* Logo ve Açıklama */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo img {
    height: 50px;
    width: auto;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-size: 0.9rem;
}

/* Kategoriler */
.footer-categories h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.footer-cat-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.7rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
    display: inline-block;
}

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

/* Sosyal Medya ve Newsletter */
.footer-social h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2rem;
    max-width: 280px;
}

.social-icons a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--orange);
    transform: translateY(-3px);
}

.social-icons a.rss-link {
    background: #f26522;
}

.social-icons a.rss-link:hover {
    background: #ff7f3f;
}

.footer-newsletter h5 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.7rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 0.9rem;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--orange);
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-form button {
    padding: 0.7rem 1rem;
    background: var(--orange);
    border: none;
    border-radius: 4px;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: var(--golden);
    transform: translateX(3px);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
    text-align: center;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.footer-links-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-links-bottom a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-links-bottom a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-links-bottom span {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

.footer-powered {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    margin: 0;
}

/* ==================== AUTHORS PAGE ==================== */
.authors-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem 2rem;
}

.authors-hero {
    margin-bottom: 3rem;
    padding: 3.5rem 0 !important;
}

.authors-hero h1 {
    font-size: 2.8rem !important;
    margin-bottom: 0.8rem !important;
}

.authors-hero p {
    font-size: 1.2rem !important;
    margin-bottom: 0 !important;
}

/* ==================== CONTACT PAGE ==================== */
.contact-hero {
    margin-bottom: 3rem;
    padding: 3.5rem 0 !important;
}

.contact-hero h1 {
    font-size: 2.8rem !important;
    margin-bottom: 0.8rem !important;
}

.contact-hero p {
    font-size: 1.2rem !important;
    margin-bottom: 0 !important;
}

.contact-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem 4rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.contact-info h2 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.contact-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.contact-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--orange), var(--golden));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.contact-details h3 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-details p {
    color: var(--text-light);
    margin: 0;
}

.contact-details a {
    color: var(--orange);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.contact-map {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.contact-faq {
    margin-top: 4rem;
}

.contact-faq h2 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    text-align: center;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.faq-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-left: 4px solid var(--orange);
}

.faq-item h3 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.faq-item p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    position: relative;
}

.page-header::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--orange), var(--golden));
    margin: 1.5rem auto 0;
    border-radius: 2px;
}

.page-header h1 {
    font-size: 2.8rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.page-description {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Authors Grid - Liste Sayfası */
.authors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.authors-grid .author-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07), 0 1px 3px rgba(0,0,0,0.06);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.06);
    position: relative;
}

.authors-grid .author-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--orange), var(--golden), var(--orange));
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.authors-grid .author-card:hover {
    box-shadow: 0 12px 24px rgba(0,0,0,0.12), 0 6px 12px rgba(0,0,0,0.08);
    transform: translateY(-8px);
}

.authors-grid .author-card:hover::before {
    opacity: 1;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.authors-grid .author-card-link {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 2.5rem 2rem 2rem;
    text-decoration: none;
    color: var(--text-color);
}

.authors-grid .author-avatar {
    width: 140px;
    height: 140px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    position: relative;
    padding: 5px;
    background: linear-gradient(135deg, var(--orange), var(--golden), var(--purple));
    background-size: 200% 200%;
    transition: all 0.4s ease;
    flex-shrink: 0;
}

.authors-grid .author-card:hover .author-avatar {
    transform: scale(1.05) rotate(2deg);
    animation: gradient-rotate 4s ease infinite;
}

@keyframes gradient-rotate {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.authors-grid .author-avatar img,
.authors-grid .avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.authors-grid .avatar-placeholder {
    background: linear-gradient(135deg, var(--orange), var(--golden));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.authors-grid .author-info {
    text-align: center !important;
    display: block !important;
    width: 100%;
}

.authors-grid .author-name-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.authors-grid .author-name {
    font-size: 1.6rem;
    color: var(--text-color);
    margin-bottom: 0;
    font-weight: 700;
    transition: color 0.3s ease;
}

.authors-grid .verified-badge {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 100%);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(29, 161, 242, 0.4);
}

.authors-grid .verified-badge svg {
    width: 14px;
    height: 14px;
}

.authors-grid .author-card:hover .author-name {
    color: var(--orange);
}

.authors-grid .author-stats {
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-direction: row !important;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
    padding: 0.5rem 1.2rem;
    background: linear-gradient(135deg, rgba(255,107,0,0.1), rgba(255,183,77,0.1));
    border-radius: 20px;
    border: 1px solid rgba(255,107,0,0.2);
}

.authors-grid .post-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--orange);
    font-weight: 600;
    font-size: 0.95rem;
}

.authors-grid .post-count svg {
    color: var(--orange);
    filter: drop-shadow(0 1px 2px rgba(255,107,0,0.3));
}

.authors-grid .author-bio {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
    margin: 0;
    padding: 1rem 0.5rem 0;
    border-top: 1px solid rgba(0,0,0,0.08);
    text-align: left;
}

.no-authors {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
}

.no-authors p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .post-single {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }

    .post-header h1 {
        font-size: 2rem;
    }

    .post-body {
        font-size: 1.05rem;
    }

    .post-body h1 {
        font-size: 2rem;
    }

    .post-body h2 {
        font-size: 1.6rem;
        padding-left: 1rem;
    }

    .post-body h3 {
        font-size: 1.35rem;
    }

    .post-body h4 {
        font-size: 1.2rem;
    }

    .post-body ul,
    .post-body ol {
        padding-left: 1.5rem;
    }

    .post-body figure.wp-caption.alignleft,
    .post-body figure.wp-caption.alignright {
        float: none;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-cat-columns {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .footer-links-bottom {
        flex-direction: column;
        gap: 0.3rem;
    }

    .footer-links-bottom span {
        display: none;
    }

    .archive-header {
        padding: 1.5rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .authors-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .main-nav {
        gap: 1rem;
    }
}

@media (max-width: 1024px) {
    /* Grid'i mobilde flex'e çevir */
    .header-wrapper {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }

    .logo {
        flex: 0 0 auto;
        grid-column: unset;
        grid-row: unset;
    }

    .mobile-menu-toggle {
        display: flex;
        margin-left: auto;
        grid-column: unset;
        grid-row: unset;
    }

    /* Desktop nav-lang'ı mobilde gizle */
    .nav-lang {
        display: none;
        grid-column: unset;
        grid-row: unset;
        justify-self: unset;
        margin-left: 0;
    }

    /* Mobile language selector - main-nav içinde */
    .nav-lang-mobile {
        display: block;
        order: -1;
        width: 100%;
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
        border-bottom: 3px solid var(--orange);
    }

    .nav-lang-mobile .dropdown-menu {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        width: 100%;
        background: transparent;
        padding: 0;
        margin: 0;
        box-shadow: none;
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: none !important;
        overflow: visible !important;
    }

    .nav-lang-mobile .dropdown-menu a {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        min-width: 50px;
        border: 1.5px solid var(--border-color);
        border-radius: 4px;
        background: var(--white);
        text-align: center;
        font-weight: 600;
        transition: var(--transition);
        cursor: pointer !important;
        pointer-events: auto !important;
        display: inline-block;
        text-decoration: none;
        color: var(--text-color);
        position: relative;
        z-index: 10000;
        -webkit-tap-highlight-color: rgba(217, 124, 52, 0.3);
        touch-action: manipulation;
    }

    .nav-lang-mobile .dropdown-menu a:hover {
        border-color: var(--orange);
        background: var(--bg-light);
        color: var(--orange);
    }

    .nav-lang-mobile .dropdown-menu a.active {
        border-color: var(--orange);
        background: var(--orange);
        color: var(--white);
    }

    /* Main nav mobilde sidebar */
    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 320px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 4rem 1.5rem 2rem;
        gap: 0;
        box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        overflow-y: auto;
        z-index: 1001;
        grid-column: unset;
        grid-row: unset;
        justify-self: unset;
    }

    .main-nav.active {
        left: 0;
    }

    .nav-link {
        width: 100%;
        padding: 1rem 0;
        border-bottom: 1px solid var(--border-color);
        font-size: 1rem;
        justify-content: flex-start;
        cursor: pointer !important;
        pointer-events: auto !important;
        text-decoration: none;
        position: relative;
        z-index: 10000;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(217, 124, 52, 0.3);
    }

    .nav-dropdown {
        width: 100%;
    }

    .dropdown-toggle {
        width: 100%;
        justify-content: space-between;
        cursor: pointer !important;
        pointer-events: auto !important;
    }

    /* Kategoriler dropdown - accordion */
    .main-nav .nav-dropdown .dropdown-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        padding-left: 1.5rem !important;
        max-height: 0 !important;
        overflow: hidden !important;
        transition: max-height 0.3s ease !important;
        margin-top: 0 !important;
        border-radius: 0 !important;
        background: var(--bg-light) !important;
    }

    .main-nav .nav-dropdown.active .dropdown-menu {
        max-height: 800px !important;
        margin-bottom: 0.5rem !important;
    }

    .main-nav .dropdown-menu a {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
        border-left: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        cursor: pointer !important;
        pointer-events: auto !important;
        text-decoration: none;
        color: var(--text-color);
        display: block;
        position: relative;
        z-index: 10000;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(217, 124, 52, 0.3);
    }

    .main-nav .dropdown-menu a:last-child {
        border-bottom: none;
    }

    /* Categories dropdown mobile - single column */
    .main-nav .categories-menu {
        min-width: auto !important;
        width: 100% !important;
        padding: 0 !important;
    }

    .main-nav .categories-menu .all-categories-link {
        margin: 0;
        border-radius: 0;
        padding: 0.6rem 1rem !important;
        text-align: center;
    }

    .main-nav .categories-grid {
        display: flex !important;
        flex-direction: column !important;
        padding: 0 !important;
    }

    .main-nav .categories-grid a {
        padding: 0.6rem 1rem !important;
        font-size: 0.9rem !important;
        font-weight: 400 !important;
        border-bottom: 1px solid rgba(0,0,0,0.05) !important;
        border-left: none !important;
        white-space: normal !important;
        line-height: 1.3 !important;
    }

    .main-nav .categories-grid a:last-child {
        border-bottom: none !important;
    }

    /* Mobile overlay - DEVRE DIŞI */
    .mobile-nav-overlay {
        display: none !important;
    }
}

/* Tablet - 768px - 1024px arası */
@media (min-width: 769px) and (max-width: 1024px) {
    .nav-lang {
        width: 360px;
    }

    .main-nav {
        width: 360px;
    }

    .logo img {
        height: 55px;
    }
}

/* Mobile - 768px ve altı */
@media (max-width: 768px) {
    .logo img {
        height: 50px;
    }

    .nav-lang {
        width: 280px;
    }

    .main-nav {
        width: 280px;
    }
}

@media (max-width: 480px) {
    .header-top {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .lang-nav {
        justify-content: center;
        flex-wrap: wrap;
    }

    .header-links {
        flex-direction: column;
        width: 100%;
    }

    .header-link {
        width: 100%;
        text-align: center;
    }

    .post-header h1 {
        font-size: 1.75rem;
    }

    .post-body h1 {
        font-size: 1.75rem;
    }

    .post-body h2 {
        font-size: 1.5rem;
    }

    .post-body h3 {
        font-size: 1.25rem;
    }
}

/* ==================== MAGAZINE STYLE HOMEPAGE ==================== */

/* Hero Post (Full Width) */
.hero-post {
    margin-bottom: 40px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--white);
}

.hero-image {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: var(--bg-light);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-image:hover img {
    transform: scale(1.05);
}

.hero-content {
    padding: 30px;
}

.hero-title {
    font-size: 2.5em;
    line-height: 1.2;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-title a {
    color: var(--text-color);
    text-decoration: none;
}

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

.hero-excerpt {
    font-size: 1.2em;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 15px;
}

.hero-date {
    color: var(--text-light);
    font-size: 0.9em;
}

/* Featured Grid (2 Columns) */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.featured-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.featured-image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: var(--bg-light);
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.featured-card:hover .featured-image img {
    transform: scale(1.1);
}

.featured-content {
    padding: 20px;
}

.featured-content h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
    line-height: 1.3;
}

.featured-content h2 a {
    color: var(--text-color);
    text-decoration: none;
}

.featured-content h2 a:hover {
    color: var(--primary-color);
}

.featured-content p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Triple Grid (3 Columns) */
.triple-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.triple-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.triple-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.triple-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--bg-light);
}

.triple-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.triple-card:hover .triple-image img {
    transform: scale(1.1);
}

.triple-card h3 {
    padding: 15px 15px 10px;
    font-size: 1.2em;
    line-height: 1.3;
}

.triple-card h3 a {
    color: var(--text-color);
    text-decoration: none;
}

.triple-card h3 a:hover {
    color: var(--primary-color);
}

.triple-card time {
    display: block;
    padding: 0 15px 15px;
    color: var(--text-light);
    font-size: 0.85em;
}

/* Standard Grid (4 Columns) */
.standard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.standard-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.standard-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.standard-image {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: var(--bg-light);
}

.standard-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.standard-card:hover .standard-image img {
    transform: scale(1.1);
}

.standard-content {
    padding: 15px;
}

.standard-content h3 {
    font-size: 1em;
    line-height: 1.3;
    margin-bottom: 8px;
}

.standard-content h3 a {
    color: var(--text-color);
    text-decoration: none;
}

.standard-content h3 a:hover {
    color: var(--primary-color);
}

.standard-content time {
    display: block;
    color: var(--text-light);
    font-size: 0.8em;
}

/* Footer Grid Update */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 15px;
    color: var(--white);
    font-weight: 600;
}

.footer-section p {
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

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

/* Editor's Picks Section */
.editors-picks {
    margin: 60px 0 40px;
    padding: 30px 20px;
    background: var(--purple);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.section-title {
    color: var(--white);
    font-size: 2em;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.editors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.editor-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    min-width: 0;
}

.editor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.editor-image {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: var(--bg-light);
}

.editor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.editor-card:hover .editor-image img {
    transform: scale(1.15);
}

.editor-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.editor-content {
    padding: 20px;
}

.editor-content h3 {
    font-size: 1.2em;
    line-height: 1.3;
    margin-bottom: 10px;
}

.editor-content h3 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.editor-content h3 a:hover {
    color: var(--primary-color);
}

.editor-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 10px;
    font-size: 0.9em;
}

.editor-content time {
    display: block;
    color: var(--text-light);
    font-size: 0.85em;
}

/* Magazine Style Responsive */
@media (max-width: 1024px) {
    .standard-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .editors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1.1rem;
    }

    .hero-search input {
        padding: 1rem 3rem 1rem 1.2rem;
        font-size: 1rem;
    }

    .hero-image {
        height: 300px;
    }

    .hero-title {
        font-size: 1.8em;
    }

    .hero-excerpt {
        font-size: 1em;
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }

    .triple-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .standard-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .editors-grid {
        grid-template-columns: 1fr;
    }

    .editors-picks {
        padding: 30px 20px;
    }

    .section-title {
        font-size: 1.5em;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 2rem 0;
    }

    .hero-section h1 {
        font-size: 1.6rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .hero-search {
        padding: 0 10px;
    }

    .triple-grid,
    .standard-grid {
        grid-template-columns: 1fr;
    }

    .editors-picks {
        padding: 20px 15px;
        margin: 40px 0 30px;
    }
}

/* ==================== SAYFA STİLLERİ ==================== */

.breadcrumb-wrapper {
    background: white;
    padding: 1rem 0;
    border-bottom: 2px solid var(--cream);
}

.breadcrumb {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.breadcrumb-top {
    margin-bottom: 0;
    color: #333;
    font-size: 0.95rem;
}

.breadcrumb-top a {
    color: #000 !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    font-weight: 400 !important;
}

.breadcrumb-top a:hover {
    color: var(--orange) !important;
    text-decoration: none !important;
}

.breadcrumb-top span {
    margin: 0 0.5rem;
    color: #666;
}

.breadcrumb-top > span:last-child {
    color: #1a1a1a;
    font-weight: 600;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
    opacity: 0.8;
}

.breadcrumb span {
    margin: 0 0.5rem;
}

.page-hero {
    background: linear-gradient(90deg, var(--purple) 0%, var(--orange) 100%);
    padding: 4rem 0;
    margin-bottom: 0;
    text-align: center;
}

.page-hero .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.page-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.page-hero p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin: 0 auto;
}

.page-hero .category-count {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 0.5rem;
    font-weight: 500;
}

.page-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem 4rem;
    background: linear-gradient(135deg, var(--cream) 0%, #faf5f0 100%);
}

.page-content h1 {
    font-size: 2rem;
    color: var(--orange);
    font-weight: 700;
    margin: 3rem 0 2rem;
    padding-left: 2rem;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.page-content h1::before {
    content: '';
    position: absolute;
    left: 0;
    top: -0.5rem;
    bottom: -0.5rem;
    width: 6px;
    background: var(--orange);
}

.page-content h1::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, rgba(217, 124, 52, 0.3) 0%, transparent 100%);
    margin-top: 1.5rem;
}

.page-content h2 {
    font-size: 1.8rem;
    color: var(--orange);
    font-weight: 700;
    margin: 3rem 0 2rem;
    padding-left: 2rem;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.page-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: -0.5rem;
    bottom: -0.5rem;
    width: 6px;
    background: var(--orange);
}

.page-content h2::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, rgba(217, 124, 52, 0.3) 0%, transparent 100%);
    margin-top: 1.5rem;
}

.page-content h3 {
    font-size: 1.3rem;
    color: var(--orange);
    font-weight: 600;
    margin: 2rem 0 1rem;
}

.page-content h4 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin: 1.5rem 0 1rem;
    font-weight: 600;
}

.page-content p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    max-width: 900px;
}

.page-content ul,
.page-content ol {
    margin: 2rem 0;
    padding-left: 0;
    list-style: none;
}

.page-content li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1.2rem;
    padding-left: 2rem;
    position: relative;
}

.page-content ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--text-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.page-content ul li strong {
    color: var(--orange);
    font-weight: 700;
}

.page-content ol {
    counter-reset: list-counter;
}

.page-content ol li {
    counter-increment: list-counter;
}

.page-content ol li::before {
    content: counter(list-counter) ".";
    position: absolute;
    left: 0;
    color: var(--orange);
    font-weight: 700;
}

.page-content a {
    color: var(--orange);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-content a:hover {
    color: var(--golden);
}

.page-content strong {
    color: var(--orange);
    font-weight: 700;
}

.page-content em {
    font-style: italic;
}

.page-content hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, rgba(217, 124, 52, 0.3) 0%, transparent 100%);
    margin: 3rem 0;
}

@media (max-width: 768px) {
    .page-hero {
        padding: 3rem 0;
    }

    .page-hero h1 {
        font-size: 1.8rem;
    }

    .page-hero p {
        font-size: 1rem;
    }

    .page-content {
        padding: 1rem 1rem 3rem;
    }

    .page-content h2 {
        font-size: 1.4rem;
        padding-left: 1.5rem;
    }

    .page-content h2::before {
        width: 4px;
    }
}

/* ==================== CATEGORIES GRID ==================== */

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 3rem 0;
}

.category-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(217, 124, 52, 0.15);
    border-color: var(--orange);
}

.category-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.05);
}

.category-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.category-card h2 {
    margin: 0 0 1rem;
    font-size: 1.4rem;
}

.category-card h2 a {
    color: var(--purple);
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-card h2 a:hover {
    color: var(--orange);
}

.category-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.category-count {
    display: inline-block;
    background: linear-gradient(90deg, var(--purple) 0%, var(--orange) 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.no-categories {
    text-align: center;
    padding: 3rem;
    color: #999;
    font-size: 1.1rem;
}

/* ==================== TAGS CLOUD ==================== */

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 3rem 0;
}

.tag-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    color: var(--purple);
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.tag-item:hover {
    background: linear-gradient(90deg, var(--purple) 0%, var(--orange) 100%);
    color: white;
    border-color: var(--orange);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(217, 124, 52, 0.2);
}

.tag-count {
    font-size: 0.85rem;
    opacity: 0.8;
}

.no-tags {
    text-align: center;
    padding: 3rem;
    color: #999;
    font-size: 1.1rem;
    width: 100%;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-top: 1rem;
    opacity: 0.95;
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem 1rem;
    }

    .category-image {
        height: 180px;
    }

    .category-card-content {
        padding: 1.25rem;
    }

    .category-card h2 {
        font-size: 1.2rem;
    }

    .tags-cloud {
        padding: 2rem 1rem;
        gap: 0.8rem;
    }

    .tag-item {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
}

/* ==================== AUTHOR PROFILE PAGE ==================== */

.author-profile {
    margin-bottom: 3rem;
}

.author-banner-section {
    position: relative;
    margin-bottom: 2rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.author-banner {
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.author-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-banner-default {
    background: linear-gradient(135deg, var(--purple) 0%, var(--orange) 100%);
    height: 280px;
}

/* Avatar ve isim overlay - sol üst */
.author-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
    display: flex;
    align-items: flex-start;
    padding: 2rem;
    gap: 1.5rem;
}

.author-avatar-circle {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.author-avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-banner-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 1.5rem;
}

.author-display-name {
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
    margin: 0 0 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #1DA1F2;
    border-radius: 50%;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(29, 161, 242, 0.5);
}

.verified-badge svg {
    width: 16px;
    height: 16px;
}

.author-stats-mini {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 500;
}

/* Profile Edit Button */
.author-banner-actions {
    position: absolute;
    bottom: 1rem;
    right: 1.5rem;
}

.btn-edit-profile {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.btn-edit-profile:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.btn-edit-profile svg {
    width: 16px;
    height: 16px;
}

/* Member Since */
.author-member-since {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.author-member-since svg {
    color: var(--orange);
}

/* Author Bio Section */
.author-bio-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--orange);
}

.author-bio-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-color);
}

/* Author Info Card - Professional Design */
.author-info-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 16px;
    padding: 1.25rem 2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.author-info-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(217, 124, 52, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.author-info-card::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.author-info-card-title {
    font-size: 1.1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    position: relative;
    z-index: 1;
    line-height: 1.5;
}

.author-info-card-title span {
    font-weight: 700;
    color: var(--orange);
}

.author-info-card-social {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.author-info-card-social .social-icon {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
}

.author-info-card-social .social-icon:hover {
    background: var(--orange);
    border-color: var(--orange);
    transform: translateY(-3px) scale(1.05);
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    border: 2px solid #e0e0e0;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-website:hover {
    background: var(--purple);
    border-color: var(--purple);
    color: white;
}

.social-twitter:hover {
    background: #1DA1F2;
    border-color: #1DA1F2;
    color: white;
}

.social-facebook:hover {
    background: #4267B2;
    border-color: #4267B2;
    color: white;
}

.social-instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: #dc2743;
    color: white;
}

.social-linkedin:hover {
    background: #0077B5;
    border-color: #0077B5;
    color: white;
}

.social-youtube:hover {
    background: #FF0000;
    border-color: #FF0000;
    color: white;
}

.social-pinterest:hover {
    background: #BD081C;
    border-color: #BD081C;
    color: white;
}

/* Social Icons SVG */
.social-icon svg {
    width: 20px;
    height: 20px;
}

.author-info-card-social .social-icon svg {
    width: 18px;
    height: 18px;
}

/* Author Page Posts Grid */
.author-profile + .posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.author-profile + .posts-grid .post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.author-profile + .posts-grid .post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.author-profile + .posts-grid .post-image {
    height: 200px;
    overflow: hidden;
}

.author-profile + .posts-grid .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.author-profile + .posts-grid .post-card:hover .post-image img {
    transform: scale(1.05);
}

.author-profile + .posts-grid .post-content {
    padding: 1.25rem;
}

.author-profile + .posts-grid .post-title {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.author-profile + .posts-grid .post-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.author-profile + .posts-grid .post-title a:hover {
    color: var(--orange);
}

.author-profile + .posts-grid .post-excerpt {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.author-profile + .posts-grid .post-meta {
    font-size: 0.85rem;
    color: #999;
}

.author-profile + .posts-grid .no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #999;
    font-size: 1.1rem;
}

/* Author Page Responsive */
@media (max-width: 1024px) {
    .author-profile + .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .author-banner,
    .author-banner-default {
        height: 220px;
    }

    .author-banner-overlay {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem;
        gap: 1rem;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 100%);
    }

    .author-avatar-circle {
        width: 80px;
        height: 80px;
        border-width: 3px;
    }

    .author-banner-info {
        padding-top: 0;
    }

    .author-display-name {
        font-size: 1.5rem;
    }

    .verified-badge {
        width: 22px;
        height: 22px;
    }

    .verified-badge svg {
        width: 12px;
        height: 12px;
    }

    .author-stats-mini {
        font-size: 0.9rem;
    }

    .author-banner-actions {
        bottom: 0.75rem;
        right: 1rem;
    }

    .btn-edit-profile {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .author-member-since {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }

    .author-bio-section {
        padding: 1.25rem 1.5rem;
    }

    .author-info-card {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
        gap: 1rem;
    }

    .author-info-card-title {
        font-size: 1rem;
    }

    .author-info-card-social {
        justify-content: center;
    }

    .author-profile + .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .author-banner,
    .author-banner-default {
        height: 180px;
    }

    .author-banner-overlay {
        padding: 1rem;
    }

    .author-avatar-circle {
        width: 60px;
        height: 60px;
    }

    .author-display-name {
        font-size: 1.25rem;
    }

    .author-banner-actions {
        bottom: 0.5rem;
        right: 0.5rem;
    }

    .btn-edit-profile {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .author-member-since {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* ==================== AUTH PAGES ==================== */
.auth-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, var(--cream) 0%, var(--bg-light) 100%);
}

.auth-container {
    width: 100%;
    max-width: 440px;
}

.auth-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    border: 1px solid var(--border-color);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 1.75rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.auth-header p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Auth Alerts */
.auth-alert {
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.auth-alert-error {
    background: #fff5f5;
    color: #c53030;
    border: 1px solid #feb2b2;
}

.auth-alert-success {
    background: #f0fff4;
    color: #2f855a;
    border: 1px solid #9ae6b4;
}

/* Auth Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

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

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input {
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(217, 124, 52, 0.15);
}

.form-group input::placeholder {
    color: #aaa;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Form Options (Remember me, Forgot password) */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-color);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--primary-color);
    flex-shrink: 0;
}

.checkbox-label span {
    line-height: 1.4;
}

.checkbox-label a {
    color: var(--primary-color);
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.forgot-link {
    font-size: 0.875rem;
    color: var(--primary-color);
}

.forgot-link:hover {
    text-decoration: underline;
}

/* Auth Button */
.auth-button {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--orange), var(--golden));
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 0.5rem;
}

.auth-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(217, 124, 52, 0.35);
}

.auth-button:active {
    transform: translateY(0);
}

/* Auth Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Google Button */
.google-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.google-button:hover {
    background: var(--bg-light);
    border-color: #ccc;
    color: var(--text-color);
}

.google-button svg {
    flex-shrink: 0;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.auth-footer p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.auth-footer a {
    color: var(--primary-color);
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Auth Page Responsive */
@media (max-width: 480px) {
    .auth-card {
        padding: 1.5rem;
    }

    .auth-header h1 {
        font-size: 1.5rem;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
    }

    .forgot-link {
        margin-top: 0.25rem;
    }
}

/* ==================== USER MENU (Header) ==================== */
.user-menu {
    position: relative;
}

.user-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem !important;
    border-radius: var(--radius);
    background: var(--bg-light);
}

.user-toggle:hover {
    background: var(--border-color);
}

.user-avatar-small {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.875rem;
}

.user-dropdown {
    min-width: 200px;
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
}

.user-dropdown a svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.user-dropdown a:hover svg {
    opacity: 1;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
}

.logout-link {
    color: #c53030 !important;
}

.logout-link:hover {
    background: #fff5f5 !important;
}

/* User Menu Responsive */
@media (max-width: 1024px) {
    .user-menu {
        width: 100%;
        border-top: 1px solid var(--border-color);
        padding-top: 1rem;
        margin-top: 1rem;
    }

    .user-toggle {
        width: 100%;
        justify-content: flex-start;
        background: transparent;
        padding: 0.75rem 0 !important;
    }

    .user-name {
        max-width: none;
    }

    .user-menu .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        padding: 0;
        margin-top: 0.5rem;
        display: none;
    }

    .user-menu.active .dropdown-menu {
        display: block;
    }

    .user-dropdown a {
        padding: 0.5rem 0;
    }
}

/* ==================== PROFILE PAGE ==================== */
.profile-page {
    min-height: calc(100vh - 200px);
}

.profile-banner {
    height: 250px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
    background-size: cover;
    background-position: center;
    position: relative;
}

.profile-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.4) 100%);
}

.profile-header {
    margin-top: -80px;
    position: relative;
    z-index: 10;
    padding-bottom: 2rem;
}

.profile-info {
    display: flex;
    align-items: flex-end;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.profile-avatar-wrapper {
    flex-shrink: 0;
}

.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid var(--white);
    object-fit: cover;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    background: var(--white);
}

.profile-details {
    flex: 1;
    min-width: 200px;
    padding-bottom: 0.5rem;
}

.profile-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.profile-username {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.profile-join-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.profile-join-date svg {
    flex-shrink: 0;
}

.profile-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding-bottom: 0.5rem;
}

.profile-content {
    padding: 2rem 0 4rem;
}

.profile-grid {
    max-width: 800px;
}

.profile-section {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.profile-bio {
    color: var(--text-color);
    line-height: 1.7;
    font-size: 1rem;
}

.profile-bio .no-bio {
    color: var(--text-light);
    font-style: italic;
}

.profile-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--text-color);
    transition: all 0.2s ease;
}

.social-link:hover {
    transform: translateY(-2px);
}

.social-link.website:hover { background: var(--accent-color); color: var(--white); }
.social-link.twitter:hover { background: #1DA1F2; color: var(--white); }
.social-link.facebook:hover { background: #1877F2; color: var(--white); }
.social-link.instagram:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: var(--white); }
.social-link.linkedin:hover { background: #0A66C2; color: var(--white); }
.social-link.youtube:hover { background: #FF0000; color: var(--white); }
.social-link.pinterest:hover { background: #E60023; color: var(--white); }

/* ==================== SETTINGS PAGE ==================== */
.settings-page {
    padding: 2rem 0 4rem;
    min-height: calc(100vh - 200px);
}

.settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.settings-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
}

.settings-alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.settings-alert-error {
    background: #fff5f5;
    color: #c53030;
    border: 1px solid #feb2b2;
}

.settings-alert-success {
    background: #f0fff4;
    color: #276749;
    border: 1px solid #9ae6b4;
}

.settings-form {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.settings-section {
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.settings-section:last-child {
    border-bottom: none;
}

.settings-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.section-note {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: -0.5rem 0 1.5rem;
}

/* Banner Upload */
.banner-upload {
    margin-bottom: 1.5rem;
}

.banner-preview {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.banner-preview:hover .banner-overlay {
    opacity: 1;
}

.upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--white);
    color: var(--text-color);
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

/* Avatar Upload */
.avatar-upload {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.avatar-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-color);
}

.avatar-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.file-input {
    display: none;
}

/* Form Groups */
.settings-section .form-group {
    margin-bottom: 1.5rem;
}

.settings-section .form-group:last-child {
    margin-bottom: 0;
}

.settings-section label {
    display: block;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.settings-section label .required {
    color: #c53030;
}

.settings-section input[type="text"],
.settings-section input[type="email"],
.settings-section input[type="url"],
.settings-section input[type="password"],
.settings-section textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    color: var(--text-color);
    background: var(--white);
    transition: all 0.2s ease;
}

.settings-section input:focus,
.settings-section textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.settings-section textarea {
    resize: vertical;
    min-height: 100px;
}

.form-help {
    display: block;
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* Input with prefix */
.input-with-prefix {
    display: flex;
    align-items: stretch;
}

.input-prefix {
    display: flex;
    align-items: center;
    padding: 0 1rem;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
    color: var(--text-light);
    font-weight: 500;
}

.input-with-prefix input {
    border-radius: 0 var(--radius) var(--radius) 0 !important;
}

/* Input with icon */
.input-with-icon {
    position: relative;
}

.input-with-icon svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    pointer-events: none;
}

.input-with-icon input {
    padding-left: 3rem !important;
}

/* Form Actions */
.form-actions {
    padding: 1.5rem 2rem;
    background: var(--bg-light);
    border-radius: 0 0 16px 16px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--accent-dark);
}

.btn-secondary {
    background: var(--text-color);
    color: var(--white);
}

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

.btn-outline {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: var(--bg-light);
    border-color: var(--text-light);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Bio Language Tabs */
.bio-tabs {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
}

.bio-tab-buttons {
    display: flex;
    flex-wrap: wrap;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.bio-tab-btn {
    padding: 0.5rem 0.75rem;
    border: none;
    background: transparent;
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border-right: 1px solid var(--border-color);
}

.bio-tab-btn:last-child {
    border-right: none;
}

.bio-tab-btn:hover {
    background: var(--white);
    color: var(--text-color);
}

.bio-tab-btn.active {
    background: var(--white);
    color: var(--accent-color);
}

.bio-tab-contents {
    padding: 0;
}

.bio-tab-content {
    display: none;
}

.bio-tab-content.active {
    display: block;
}

.bio-tab-content textarea {
    border: none !important;
    border-radius: 0 !important;
    resize: vertical;
}

.bio-tab-content textarea:focus {
    box-shadow: inset 0 0 0 2px rgba(99, 102, 241, 0.2) !important;
}

/* Profile/Settings Responsive */
@media (max-width: 768px) {
    .profile-banner {
        height: 180px;
    }

    .profile-header {
        margin-top: -60px;
    }

    .profile-avatar {
        width: 100px;
        height: 100px;
    }

    .profile-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-actions {
        width: 100%;
    }

    .profile-actions .btn {
        flex: 1;
        justify-content: center;
    }

    .profile-section {
        padding: 1.5rem;
    }

    .settings-section {
        padding: 1.5rem;
    }

    .settings-header h1 {
        font-size: 1.5rem;
    }

    .banner-preview {
        height: 140px;
    }

    .avatar-upload {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-actions {
        padding: 1.25rem 1.5rem;
    }
}

/* ==================== 404 ERROR PAGE ==================== */
.error-page {
    min-height: calc(100vh - 200px);
    padding: 3rem 1rem;
    background: linear-gradient(135deg, var(--cream) 0%, var(--bg-light) 100%);
}

.error-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.error-animation {
    margin-bottom: 2rem;
}

.error-globe {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 1rem;
}

.globe-svg {
    width: 100%;
    height: 100%;
    color: var(--orange);
    animation: rotate-globe 20s linear infinite;
}

@keyframes rotate-globe {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.error-pin {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    color: var(--purple);
    animation: bounce-pin 2s ease-in-out infinite;
}

.error-pin svg {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 4px 8px rgba(95, 39, 205, 0.3));
}

.pin-pulse {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 8px;
    background: rgba(95, 39, 205, 0.3);
    border-radius: 50%;
    animation: pulse-shadow 2s ease-in-out infinite;
}

@keyframes bounce-pin {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

@keyframes pulse-shadow {
    0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.3; }
    50% { transform: translateX(-50%) scale(1.5); opacity: 0.1; }
}

.error-code {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.error-message {
    margin-bottom: 2.5rem;
}

.error-message h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 1rem;
}

.error-message p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

.error-search {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
}

.error-search h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin: 0 0 1rem;
}

.error-search-form {
    display: flex;
    gap: 0.5rem;
}

.error-search-form input {
    flex: 1;
    padding: 0.9rem 1.2rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.error-search-form input:focus {
    outline: none;
    border-color: var(--orange);
}

.error-search-form button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.5rem;
    background: var(--orange);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.error-search-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

.error-search-form button svg {
    width: 18px;
    height: 18px;
}

.error-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--white);
    color: var(--purple);
    border: 2px solid var(--purple);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.error-home-btn:hover {
    background: var(--purple);
    color: white;
}

.error-home-btn svg {
    width: 20px;
    height: 20px;
}

.error-suggestions {
    max-width: 1000px;
    margin: 4rem auto 0;
    padding: 0 1rem;
}

.error-suggestions h2 {
    font-size: 1.5rem;
    color: var(--text-dark);
    text-align: center;
    margin: 0 0 2rem;
}

.suggestions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.suggestion-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.suggestion-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.suggestion-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.suggestion-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.suggestion-card:hover .suggestion-image img {
    transform: scale(1.05);
}

.suggestion-content {
    padding: 1rem 1.25rem;
}

.suggestion-content h4 {
    font-size: 1rem;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 768px) {
    .error-message h1 {
        font-size: 2rem;
    }

    .error-search-form {
        flex-direction: column;
    }

    .error-search-form button {
        justify-content: center;
    }

    .suggestions-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 480px) {
    .error-globe {
        width: 120px;
        height: 120px;
    }

    .error-message h1 {
        font-size: 1.75rem;
    }

    .error-search {
        padding: 1.5rem;
    }
}

/* ==================== SEARCH RESULTS PAGE ==================== */
.search-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
}

.search-header {
    text-align: center;
    margin-bottom: 3rem;
}

.search-header h1 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin: 0 0 0.5rem;
}

.search-query {
    font-size: 1.25rem;
    color: var(--orange);
    margin: 0 0 0.5rem;
}

.search-count {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0 0 2rem;
}

.search-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    gap: 0.5rem;
}

.search-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-form input:focus {
    outline: none;
    border-color: var(--orange);
}

.search-form button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--orange);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.search-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

.search-form button svg {
    width: 18px;
    height: 18px;
}

.search-no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.search-no-results svg {
    width: 80px;
    height: 80px;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.search-no-results h2 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin: 0 0 0.5rem;
}

.search-no-results p {
    color: var(--text-muted);
    margin: 0;
}

.search-results {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.search-result-card {
    display: flex;
    gap: 1.5rem;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.search-result-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.result-image {
    flex-shrink: 0;
    width: 200px;
    height: 150px;
    overflow: hidden;
}

.result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.search-result-card:hover .result-image img {
    transform: scale(1.05);
}

.result-content {
    flex: 1;
    padding: 1.25rem 1.25rem 1.25rem 0;
    display: flex;
    flex-direction: column;
}

.result-content h2 {
    font-size: 1.25rem;
    margin: 0 0 0.75rem;
    line-height: 1.4;
}

.result-content h2 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.result-content h2 a:hover {
    color: var(--orange);
}

.result-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 1rem;
    flex: 1;
}

.result-content .read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--orange);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    transition: gap 0.2s ease;
}

.result-content .read-more:hover {
    gap: 0.75rem;
}

.result-content .read-more svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 768px) {
    .search-header h1 {
        font-size: 2rem;
    }

    .search-form {
        flex-direction: column;
    }

    .search-form button {
        justify-content: center;
    }

    .search-result-card {
        flex-direction: column;
    }

    .result-image {
        width: 100%;
        height: 180px;
    }

    .result-content {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .search-header h1 {
        font-size: 1.75rem;
    }

    .search-query {
        font-size: 1.1rem;
    }

    .result-image {
        height: 150px;
    }

    .result-content h2 {
        font-size: 1.1rem;
    }
}

/* ==================== BACK TO TOP & PROGRESS ==================== */
/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--orange), var(--golden));
    z-index: 9999;
    transition: width 0.1s ease-out;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--orange);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(217, 124, 52, 0.3);
    z-index: 1000;
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(217, 124, 52, 0.4);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 44px;
        height: 44px;
    }
    
    .back-to-top svg {
        width: 20px;
        height: 20px;
    }
}

/* ==================== TABLE OF CONTENTS ==================== */
.toc {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--orange);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0 2rem;
    width: 100%;
}

.toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    cursor: pointer;
    user-select: none;
    padding: 0.5rem;
    margin: -0.5rem -0.5rem 1rem -0.5rem;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.toc-header:hover {
    background: rgba(0, 0, 0, 0.03);
}

.toc.collapsed .toc-header {
    margin-bottom: 0;
}

.toc-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-color);
}

.toc-toggle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-light);
    transition: all 0.2s ease;
}

.toc-toggle:hover {
    background: var(--orange);
    color: white;
    border-color: var(--orange);
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: toc-counter;
}

.toc-list li {
    margin: 0.5rem 0;
    padding-left: 0;
    position: relative;
}

.toc-list li::before {
    counter-increment: toc-counter;
    content: counter(toc-counter) ".";
    color: var(--orange);
    font-weight: 600;
    margin-right: 0.5rem;
}

.toc-list li a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.toc-list li a:hover {
    color: var(--orange);
}

/* Scroll Spy - Active TOC item */
.toc-list li.active > a {
    color: var(--orange);
    font-weight: 600;
}

.toc-list li.active::before {
    color: var(--orange);
    font-weight: 700;
}

.toc-list li.toc-sub {
    margin-left: 1.5rem;
    font-size: 0.95rem;
}

.toc-list li.toc-sub::before {
    content: "−";
    color: var(--text-light);
}

.toc.collapsed .toc-list {
    display: none;
}

.toc.collapsed .toc-toggle {
    transform: rotate(0);
}

@media (max-width: 768px) {
    .toc {
        padding: 1rem 1.25rem;
    }
    
    .toc-title {
        font-size: 1rem;
    }
}

/* ==================== NEWSLETTER MESSAGE ==================== */
.newsletter-message {
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    display: none;
}

.newsletter-message.success {
    display: block;
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.newsletter-message.error {
    display: block;
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ==================== FAVORITES ==================== */
.post-header-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.post-header-top h1 {
    flex: 1;
}

.favorite-btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border: none;
    background: var(--cream);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.favorite-btn:hover {
    background: #fff;
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.favorite-btn .heart-icon {
    width: 24px;
    height: 24px;
    stroke: var(--text-light);
    transition: var(--transition);
}

.favorite-btn.active .heart-icon {
    fill: #ef4444;
    stroke: #ef4444;
}

.favorite-btn.active {
    background: rgba(239, 68, 68, 0.1);
}

/* Favorites Page */
.favorites-page {
    padding: 2rem 0;
}

.favorites-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.favorites-header h1 {
    font-size: 1.75rem;
    color: var(--text-color);
}

.favorites-count {
    font-size: 0.9rem;
    color: var(--text-light);
    background: var(--cream);
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.favorites-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.favorites-empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--cream);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.favorites-empty-icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--text-light);
}

.favorites-empty h2 {
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.favorites-empty p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.favorite-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.favorite-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.favorite-card-image {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.favorite-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.favorite-card:hover .favorite-card-image img {
    transform: scale(1.05);
}

.favorite-card-content {
    padding: 1rem;
}

.favorite-card-content h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.favorite-card-content h3 a {
    color: var(--text-color);
    text-decoration: none;
}

.favorite-card-content h3 a:hover {
    color: var(--primary-color);
}

.favorite-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

.favorite-remove {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.favorite-card:hover .favorite-remove {
    opacity: 1;
}

.favorite-remove:hover {
    background: #ef4444;
    color: white;
}

.favorite-remove svg {
    width: 16px;
    height: 16px;
}

/* Favorites link in header */
.favorites-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.favorites-link:hover {
    color: var(--primary-color);
}

.favorites-link svg {
    width: 18px;
    height: 18px;
}

.favorites-link .count {
    background: var(--primary-color);
    color: white;
    font-size: 0.7rem;
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

@media (max-width: 768px) {
    .post-header-top {
        gap: 0.75rem;
    }

    .favorite-btn {
        width: 40px;
        height: 40px;
    }

    .favorite-btn .heart-icon {
        width: 20px;
        height: 20px;
    }

    .favorites-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== ANNOUNCEMENTS LINK ==================== */
.announcements-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.announcements-link:hover {
    color: var(--primary-color);
}

.announcements-link svg {
    width: 18px;
    height: 18px;
}

.announcement-badge {
    background: var(--primary-color);
    color: white;
    font-size: 0.7rem;
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* ==================== THEME TOGGLE ==================== */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 50%;
    transition: var(--transition);
    color: var(--text-light);
}

.theme-toggle:hover {
    background: var(--cream);
    color: var(--primary-color);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    transition: var(--transition);
}

.theme-toggle .sun-icon {
    display: none;
}

.theme-toggle .moon-icon {
    display: block;
}

[data-theme="dark"] .theme-toggle .sun-icon {
    display: block;
}

[data-theme="dark"] .theme-toggle .moon-icon {
    display: none;
}

[data-theme="dark"] .theme-toggle {
    color: var(--golden);
}

[data-theme="dark"] .theme-toggle:hover {
    background: var(--bg-dark-tertiary);
}

/* Smooth theme transition */
html.theme-transition,
html.theme-transition *,
html.theme-transition *:before,
html.theme-transition *:after {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
    transition-delay: 0s !important;
}

/* ==================== BREADCRUMBS ==================== */
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

.breadcrumbs a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.breadcrumbs .separator {
    color: var(--border-color);
    font-size: 0.75rem;
}

.breadcrumbs .current {
    color: var(--text-color);
    font-weight: 500;
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.breadcrumbs .home-icon {
    display: flex;
    align-items: center;
}

.breadcrumbs .home-icon svg {
    width: 16px;
    height: 16px;
}

[data-theme="dark"] .breadcrumbs .separator {
    color: var(--border-dark);
}

@media (max-width: 768px) {
    .breadcrumbs {
        font-size: 0.8rem;
        gap: 0.35rem;
    }

    .breadcrumbs .current {
        max-width: 180px;
    }
}

/* ==================== FONT SIZE CONTROLS ==================== */
:root {
    --font-size-multiplier: 1;
}

/* Apply font size to readable content */
.post-body,
.post-body p,
.post-body li,
.post-body blockquote,
.faq-answer {
    font-size: calc(1rem * var(--font-size-multiplier));
    line-height: calc(1.7 * var(--font-size-multiplier));
}

.post-body h2 {
    font-size: calc(1.5rem * var(--font-size-multiplier));
}

.post-body h3 {
    font-size: calc(1.25rem * var(--font-size-multiplier));
}

.font-size-controls {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-right: 0.5rem;
}

.font-size-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-color);
    background: var(--white);
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    color: var(--text-light);
    transition: var(--transition);
}

.font-size-btn:first-child {
    border-radius: 6px 0 0 6px;
}

.font-size-btn:last-child {
    border-radius: 0 6px 6px 0;
}

.font-size-btn:hover {
    background: var(--cream);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.font-size-btn:active {
    transform: scale(0.95);
}

.font-size-btn.decrease {
    font-size: 0.75rem;
}

.font-size-btn.increase {
    font-size: 1rem;
}

.font-size-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.font-size-btn:disabled:hover {
    background: var(--white);
    color: var(--text-light);
    border-color: var(--border-color);
}

[data-theme="dark"] .font-size-btn {
    background: var(--bg-dark-secondary);
    border-color: var(--border-dark);
    color: var(--text-light);
}

[data-theme="dark"] .font-size-btn:hover {
    background: var(--bg-dark-tertiary);
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .font-size-controls {
        display: none;
    }
}

/* Post Font Controls - Between Image and TOC */
.post-font-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin: 15px 0;
    padding: 10px 14px;
    background: var(--cream);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    width: fit-content;
    margin-left: auto;
}

.post-font-controls .font-label {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

.post-font-controls .font-size-btn {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    font-size: 0.9rem;
}

.post-font-controls .font-size-btn.decrease {
    font-size: 0.8rem;
}

.post-font-controls .font-size-btn.increase {
    font-size: 1.1rem;
}

[data-theme="dark"] .post-font-controls {
    background: var(--bg-dark-secondary);
    border-color: var(--border-dark);
}

@media (max-width: 768px) {
    .post-font-controls {
        width: fit-content;
        margin-left: auto;
        margin-right: 0;
    }
}

/* PWA Install Prompt */
.pwa-prompt {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    transform: translateY(-100%);
    transition: transform 0.3s ease-out;
}

.pwa-prompt.show {
    transform: translateY(0);
}

.pwa-prompt-content {
    background: var(--primary-color);
    color: white;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.pwa-prompt-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    flex-shrink: 0;
    background: white;
    padding: 3px;
}

.pwa-prompt-text {
    flex: 1;
    min-width: 0;
}

.pwa-prompt-text strong {
    font-size: 0.95rem;
    margin-right: 8px;
}

.pwa-prompt-text p {
    display: inline;
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.9;
}

.pwa-prompt-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.pwa-btn-install {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: opacity 0.2s;
}

.pwa-btn-install:hover {
    opacity: 0.9;
}

.pwa-btn-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 4px 8px;
    opacity: 0.7;
    transition: opacity 0.2s;
    line-height: 1;
}

.pwa-btn-close:hover {
    opacity: 1;
}

@media (max-width: 480px) {
    .pwa-prompt-content {
        padding: 8px 12px;
    }

    .pwa-prompt-icon {
        width: 32px;
        height: 32px;
    }

    .pwa-prompt-text strong {
        display: block;
        font-size: 0.9rem;
        margin-right: 0;
    }

    .pwa-prompt-text p {
        display: block;
        font-size: 0.8rem;
    }

    .pwa-btn-install {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* Push Notification Prompt */
.push-prompt {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.push-prompt-content {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 20px;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    border: 1px solid var(--border-color);
}

.push-prompt-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.push-prompt-close:hover {
    color: var(--text-color);
}

.push-prompt-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--cream);
    border-radius: 50%;
    color: var(--primary-color);
}

.push-prompt-text strong {
    display: block;
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 4px;
}

.push-prompt-text p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
}

.push-prompt-buttons {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.push-btn-allow {
    flex: 1;
    padding: 10px 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.push-btn-allow:hover {
    background: var(--primary-dark);
}

.push-btn-deny {
    padding: 10px 16px;
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.push-btn-deny:hover {
    background: var(--cream);
}

/* Dark mode */
[data-theme="dark"] .push-prompt-content {
    background: var(--bg-dark-secondary);
    border-color: var(--border-dark);
}

[data-theme="dark"] .push-prompt-icon {
    background: var(--bg-dark-tertiary);
}

[data-theme="dark"] .push-prompt-text strong {
    color: var(--text-dark);
}

[data-theme="dark"] .push-prompt-text p {
    color: var(--text-dark-muted);
}

[data-theme="dark"] .push-btn-deny {
    border-color: var(--border-dark);
    color: var(--text-dark-muted);
}

[data-theme="dark"] .push-btn-deny:hover {
    background: var(--bg-dark-tertiary);
}

@media (max-width: 480px) {
    .push-prompt {
        bottom: 10px;
        right: 10px;
        left: 10px;
    }

    .push-prompt-content {
        max-width: none;
    }
}

/* Post Controls Row */
.post-controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.post-controls-row .post-font-controls {
    margin: 0;
}

/* Reading Time */
.reading-time {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--cream);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-light);
    white-space: nowrap;
}

.reading-time svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

/* Text-to-Speech Player */
.tts-player {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--cream);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.tts-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition);
}

.tts-play {
    background: var(--primary-color);
    color: white;
}

.tts-play:hover {
    background: var(--primary-dark);
}

.tts-stop {
    background: var(--text-light);
    color: white;
    padding: 8px 10px;
}

.tts-stop:hover {
    background: var(--text-color);
}

.tts-label {
    white-space: nowrap;
}

.tts-progress {
    flex: 1;
    min-width: 80px;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
}

.tts-progress-bar {
    height: 100%;
    background: var(--primary-color);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
}

/* Dark mode */
[data-theme="dark"] .tts-player {
    background: var(--bg-dark-secondary);
    border-color: var(--border-dark);
}

[data-theme="dark"] .tts-progress {
    background: var(--border-dark);
}

/* MP3 Audio Player */
.audio-player {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--cream);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.audio-player audio {
    display: none;
}

.audio-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition);
    background: var(--primary-color);
    color: white;
}

.audio-btn:hover {
    background: var(--primary-dark);
}

.audio-label {
    white-space: nowrap;
}

.audio-time {
    font-size: 0.8rem;
    color: var(--text-light);
    white-space: nowrap;
    min-width: 80px;
    text-align: center;
}

.audio-progress {
    flex: 1;
    min-width: 100px;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
}

.audio-progress-bar {
    height: 100%;
    background: var(--primary-color);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
}

.audio-speed {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
    background: var(--border-color);
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    user-select: none;
    transition: var(--transition);
}

.audio-speed:hover {
    background: var(--primary-color);
    color: white;
}

/* Dark mode */
[data-theme="dark"] .audio-player {
    background: var(--bg-dark-secondary);
    border-color: var(--border-dark);
}

[data-theme="dark"] .audio-progress {
    background: var(--border-dark);
}

[data-theme="dark"] .audio-speed {
    background: var(--border-dark);
    color: var(--text-dark);
}

[data-theme="dark"] .audio-speed:hover {
    background: var(--primary-color);
    color: white;
}

@media (max-width: 768px) {
    .audio-player {
        flex-wrap: wrap;
        justify-content: center;
    }

    .audio-progress {
        order: 3;
        width: 100%;
        flex: none;
        margin-top: 8px;
    }
}

@media (max-width: 768px) {
    .post-controls-row {
        flex-direction: column;
        align-items: stretch;
    }

    .post-controls-row .post-font-controls {
        justify-content: center;
        margin-left: 0;
    }

    .reading-time {
        justify-content: center;
    }

    .tts-player {
        justify-content: center;
    }

    .tts-progress {
        display: none;
    }
}

@media (max-width: 480px) {
    .tts-label {
        display: none;
    }

    .tts-btn {
        padding: 10px 12px;
    }
}

/* ========================================
   In-Article Newsletter Box
======================================== */
.article-newsletter {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    margin: 2.5rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #e85d04 100%);
    border-radius: 16px;
    color: white;
}

.article-newsletter .newsletter-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: background 0.2s;
}

.article-newsletter .newsletter-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.article-newsletter .newsletter-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-newsletter .newsletter-content {
    flex: 1;
    min-width: 200px;
}

.article-newsletter .newsletter-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.article-newsletter .newsletter-content p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.5;
}

.article-newsletter .newsletter-form {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.article-newsletter .newsletter-form input[type="email"] {
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 1rem;
    width: 220px;
    transition: border-color 0.2s, background 0.2s;
}

.article-newsletter .newsletter-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.article-newsletter .newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: white;
    background: rgba(255, 255, 255, 0.25);
}

.article-newsletter .newsletter-form button {
    padding: 12px 24px;
    background: white;
    color: var(--primary-color);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.article-newsletter .newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.article-newsletter .newsletter-message {
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
}

.article-newsletter .newsletter-message .success {
    color: #a7f3d0;
    font-weight: 500;
}

.article-newsletter .newsletter-message .error {
    color: #fecaca;
    font-weight: 500;
}

@media (max-width: 768px) {
    .article-newsletter {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .article-newsletter .newsletter-form {
        flex-direction: column;
        width: 100%;
    }

    .article-newsletter .newsletter-form input[type="email"] {
        width: 100%;
    }

    .article-newsletter .newsletter-form button {
        width: 100%;
    }
}

/* ========================================
   Previous/Next Post Navigation
======================================== */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 3rem 0;
    padding: 0;
}

.post-nav-link {
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1.5rem;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.post-nav-link:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.post-nav-empty {
    visibility: hidden;
}

.post-nav-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.post-nav-label svg {
    width: 16px;
    height: 16px;
    stroke: var(--primary-color);
}

.post-nav-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-nav-prev {
    text-align: left;
}

.post-nav-next {
    text-align: right;
}

.post-nav-next .post-nav-label {
    justify-content: flex-end;
}

/* Dark mode */
[data-theme="dark"] .post-nav-link {
    background: var(--bg-dark-secondary);
    border-color: var(--border-dark);
}

[data-theme="dark"] .post-nav-link:hover {
    border-color: var(--primary-color);
}

[data-theme="dark"] .post-nav-title {
    color: var(--text-dark-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .post-navigation {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .post-nav-empty {
        display: none;
    }

    .post-nav-next {
        text-align: left;
    }

    .post-nav-next .post-nav-label {
        justify-content: flex-start;
        flex-direction: row-reverse;
    }
}

/* ==================== */
/* Removed Image Caption */
/* ==================== */
.image-caption,
.removed-image-caption {
    margin: 8px 0;
    color: #64748b;
    font-size: 0.9rem;
}

.image-caption em {
    font-style: italic;
}

.removed-image-caption figcaption {
    color: #64748b;
    font-style: italic;
    font-size: 0.9rem;
}

.removed-image-caption .caption-icon {
    margin-right: 4px;
}

/* Dark mode */
[data-theme="dark"] .image-caption,
[data-theme="dark"] .removed-image-caption figcaption {
    color: #94a3b8;
}
