/* ================================
   TÜM Partners Blog - Minimal Design
   Colors: Red, Black, White ONLY
   Theme: Dark & Light Mode
   ================================ */

/* Default Light Theme - Flicker önleme */
:root {
    /* Main Colors - Light Mode */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-card: #ffffff;
    --bg-hover: #f1f3f5;
    
    --text-primary: #000000;
    --text-secondary: #333333;
    --text-muted: #666666;
    
    --border-color: #e0e0e0;
    --border-light: #f0f0f0;
    
    /* Red stays the same */
    --primary-red: #dc2626;
    --primary-red-hover: #ef4444;
    --primary-red-light: #ff6b6b;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
}

:root[data-theme="dark"] {
    /* Main Colors - Dark Mode */
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-card: #111111;
    --bg-hover: #1a1a1a;
    
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #888888;
    
    --border-color: #222222;
    --border-light: #1a1a1a;
    
    /* Red stays the same in both themes */
    --primary-red: #dc2626;
    --primary-red-hover: #ef4444;
    --primary-red-light: #ff6b6b;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
}

:root[data-theme="light"] {
    /* Main Colors - Light Mode */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-card: #ffffff;
    --bg-hover: #f1f3f5;
    
    --text-primary: #000000;
    --text-secondary: #333333;
    --text-muted: #666666;
    
    --border-color: #e0e0e0;
    --border-light: #f0f0f0;
    
    /* Red stays the same */
    --primary-red: #dc2626;
    --primary-red-hover: #ef4444;
    --primary-red-light: #ff6b6b;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* Default to light mode */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-card: #ffffff;
    --bg-hover: #f1f3f5;
    --text-primary: #000000;
    --text-secondary: #333333;
    --text-muted: #666666;
    --border-color: #e0e0e0;
    --border-light: #f0f0f0;
    --primary-red: #dc2626;
    --primary-red-hover: #ef4444;
    --primary-red-light: #ff6b6b;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color var(--transition), color var(--transition);
}

/* ================================
   Theme Transition Overlay
   ================================ */

.theme-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: 99999;
    pointer-events: none;
    clip-path: circle(0% at 50% 50%);
    transition: clip-path 0.8s cubic-bezier(0.85, 0, 0.15, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-transition-overlay.active {
    clip-path: circle(150% at 50% 50%);
}

.theme-transition-overlay.reverse {
    clip-path: circle(0% at 50% 50%);
}

/* Logo in transition overlay */
.theme-transition-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: auto;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    filter: brightness(0) invert(1);
    z-index: 100000;
}

.theme-transition-overlay.active .theme-transition-logo {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.theme-transition-overlay.reverse .theme-transition-logo {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
}

::selection {
    background-color: var(--primary-red);
    color: white;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-red);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-red-hover);
}

/* ================================
   Navbar
   ================================ */

.navbar {
    padding: 1rem 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--text-primary) !important;
    transition: var(--transition);
}

.navbar-brand:hover {
    transform: translateY(-2px);
}

.navbar-brand .logo {
    height: 45px;
    width: auto;
    transition: filter var(--transition);
}

/* Logo renk değişimi - Dark tema'da beyaz */
[data-theme="dark"] .navbar-brand .logo,
[data-theme="dark"] .footer-brand img {
    filter: brightness(0) invert(1);
}

/* Light tema'da normal (siyah/kırmızı) */
[data-theme="light"] .navbar-brand .logo,
[data-theme="light"] .footer-brand img {
    filter: none;
}

.brand-text {
    color: var(--text-primary);
    font-family: 'Space Grotesk', sans-serif;
}

.navbar-nav .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: 8px;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--text-primary) !important;
    background: var(--bg-hover);
}

/* Theme Toggle Button */
.theme-toggle {
    width: 40px;
    height: 40px;
    border: 2px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
}

.theme-toggle:hover {
    background: var(--bg-hover);
    border-color: var(--primary-red);
    color: var(--primary-red);
}

.btn-nav-cta {
    background: var(--primary-red) !important;
    color: white !important;
    border-radius: 8px !important;
    padding: 0.5rem 1.5rem !important;
    margin-left: 0.5rem;
}

.btn-nav-cta:hover {
    background: var(--primary-red-hover) !important;
    transform: translateY(-2px);
}

.navbar-toggler {
    border: none;
    color: var(--text-primary);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

[data-theme="light"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ================================
   Hero Section
   ================================ */

.hero-section {
    position: relative;
    min-height: 100vh;
    background: var(--bg-primary);
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    opacity: 0.4;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary-red) 0%, transparent 70%);
    top: -200px;
    right: -100px;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-red) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    animation-delay: 10s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary-red-light) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    animation-delay: 5s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-red);
    margin-bottom: 2rem;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.gradient-text {
    color: var(--primary-red);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn-primary {
    background: var(--primary-red) !important;
    border: none !important;
    padding: 0.875rem 2rem !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    color: white !important;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition) !important;
}

.btn-primary:hover {
    background: var(--primary-red-hover) !important;
    transform: translateY(-2px);
}

.btn-outline-light {
    background: var(--bg-card) !important;
    border: 2px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    padding: 0.875rem 2rem !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    transition: var(--transition) !important;
}

.btn-outline-light:hover {
    border-color: var(--primary-red) !important;
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-red);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Hero Illustration */
.hero-illustration {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.illustration-card {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
    animation: float-card 3s infinite ease-in-out;
}

.illustration-card:hover {
    border-color: var(--primary-red);
    transform: translateY(-10px);
}

.illustration-card i {
    font-size: 3rem;
    color: var(--primary-red);
}

.illustration-card span {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.card-1 { top: 10%; left: 10%; }
.card-2 { top: 10%; right: 10%; animation-delay: 0.5s; }
.card-3 { bottom: 20%; left: 15%; animation-delay: 1s; }
.card-4 { bottom: 20%; right: 15%; animation-delay: 1.5s; }

@keyframes float-card {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.5;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary-red);
    border-radius: 15px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--primary-red);
    border-radius: 2px;
    animation: scroll-dot 2s infinite;
}

@keyframes scroll-dot {
    0% { top: 10px; opacity: 1; }
    100% { top: 30px; opacity: 0; }
}

.scroll-indicator span {
    font-size: 0.85rem;
    color: var(--primary-red);
    font-weight: 600;
}

/* ================================
   Section Styles
   ================================ */

section {
    padding: 6rem 0;
    position: relative;
    background: var(--bg-primary);
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.section-title-small {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

/* ================================
   Features Section
   ================================ */

.features-section {
    background: var(--bg-secondary);
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    height: 100%;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-red);
    box-shadow: var(--shadow-lg);
}

.feature-card.featured {
    border-color: var(--primary-red);
}

.feature-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--primary-red);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-red);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-text {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.feature-link a {
    color: var(--primary-red);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.feature-link a:hover {
    gap: 1rem;
}

.stats-banner {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem 2rem;
    margin-top: 4rem;
}

.stat-box i {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.stat-box h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-red);
    margin-bottom: 0.5rem;
}

.stat-box p {
    color: var(--text-secondary);
    font-weight: 500;
    margin: 0;
}

/* ================================
   Categories
   ================================ */

.categories-section {
    background: var(--bg-primary);
}

.category-item {
    transition: all 0.3s ease;
}

.category-item.category-hidden {
    display: none;
}

.category-item.show {
    display: block;
    animation: fadeInUp 0.3s ease;
}

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

.category-chip-link {
    text-decoration: none;
    display: block;
}

.category-chip {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition);
    cursor: pointer;
}

.category-chip:hover {
    background: var(--primary-red);
    color: white;
    border-color: var(--primary-red);
    transform: translateY(-5px);
}

#showAllCategories {
    padding: 0.75rem 2rem;
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
    background: transparent;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

#showAllCategories:hover {
    background: var(--primary-red);
    color: white;
    transform: translateY(-2px);
}

#showAllCategories.expanded i {
    transform: rotate(180deg);
}

/* ================================
   Blog Section
   ================================ */

.blog-section {
    background: var(--bg-secondary);
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-red);
    box-shadow: var(--shadow-lg);
}

.blog-card-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: var(--bg-secondary);
}

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

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

.blog-card-placeholder {
    background: var(--primary-red);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-icon i {
    font-size: 4rem;
    color: white;
    opacity: 0.5;
}

.blog-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.blog-card:hover .blog-card-overlay {
    opacity: 1;
}

.btn-read-more {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-red);
    border: none;
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
}

.btn-read-more:hover {
    transform: scale(1.2);
    color: white;
}

.blog-card-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.blog-category {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid var(--primary-red);
    color: var(--primary-red);
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.blog-date {
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.blog-author {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-top: 0.5rem;
}

.blog-author i {
    color: var(--primary-red);
}

.blog-card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-card-excerpt {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex: 1;
}

.blog-card-link {
    background: none;
    border: none;
    color: var(--primary-red);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.blog-card-link:hover {
    gap: 1rem;
    color: var(--primary-red-hover);
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-card);
    border: 2px dashed var(--border-color);
    border-radius: 16px;
}

.empty-state i {
    font-size: 5rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* ================================
   Contact Section
   ================================ */

.contact-section {
    background: var(--bg-primary);
}

.contact-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem;
}

.contact-info-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.contact-info-card > p {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.contact-info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-red);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.5rem;
    color: white;
}

.contact-details h5 {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

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

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.2rem;
    transition: var(--transition);
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary-red);
    color: white;
    border-color: var(--primary-red);
    transform: translateY(-3px);
}

.contact-form-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
}

.modern-form label {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.modern-form .form-control {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.875rem 1.25rem;
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
    width: 100%;
}

.modern-form .form-control:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
    outline: none;
    background: var(--bg-card);
}

.modern-form .form-control::placeholder {
    color: var(--text-muted);
}

/* Alert Styles */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.alert-success {
    background: rgba(22, 163, 74, 0.1);
    border: 1px solid #16a34a;
    color: #16a34a;
}

.alert-danger {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid var(--primary-red);
    color: var(--primary-red);
}

/* ================================
   Post Detail Page
   ================================ */

.post-detail-section {
    padding-top: 120px;
    padding-bottom: 6rem;
    background: var(--bg-primary);
    min-height: 100vh;
}

.breadcrumb-custom {
    background: none;
    padding: 1rem 0;
    margin-bottom: 2rem;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.breadcrumb-item {
    color: var(--text-secondary);
}

.breadcrumb-item a {
    color: var(--primary-red);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb-item a:hover {
    color: var(--primary-red-hover);
}

.breadcrumb-item.active {
    color: var(--text-primary);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    padding-right: 0.5rem;
    color: var(--text-muted);
}

.post-detail-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem;
    margin-bottom: 3rem;
}

.post-header {
    margin-bottom: 2rem;
}

.post-meta-top {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.post-category {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid var(--primary-red);
    color: var(--primary-red);
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.post-date, .post-views {
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.post-author {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.post-author i {
    color: var(--primary-red);
    font-size: 1.1rem;
}

.post-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-excerpt {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.post-featured-image {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 2rem;
}

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

.post-content {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-primary);
    margin-bottom: 3rem;
}

/* TinyMCE Content Styling */
.post-content h1, .post-content h2, .post-content h3,
.post-content h4, .post-content h5, .post-content h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.post-content h2 { font-size: 2rem; }
.post-content h3 { font-size: 1.5rem; }
.post-content h4 { font-size: 1.25rem; }

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
}

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

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

.post-content a {
    color: var(--primary-red);
    text-decoration: none;
    border-bottom: 1px solid var(--primary-red);
    transition: var(--transition);
}

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

.post-content blockquote {
    border-left: 4px solid var(--primary-red);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-secondary);
}

.post-content code {
    background: var(--bg-secondary);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.post-content pre {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.post-content table th,
.post-content table td {
    border: 1px solid var(--border-color);
    padding: 0.75rem;
    text-align: left;
}

.post-content table th {
    background: var(--bg-secondary);
    font-weight: 600;
}

.post-content strong {
    font-weight: 700;
    color: var(--text-primary);
}

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

.post-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.post-share h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.linkedin { background: #0a66c2; }
.share-btn.whatsapp { background: #25d366; }

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    color: white;
}

/* Related Posts */
.related-posts-section {
    margin-top: 4rem;
}

.related-post-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    text-decoration: none;
    height: 100%;
}

.related-post-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-red);
    box-shadow: var(--shadow-md);
}

.related-post-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--bg-secondary);
}

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

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

.related-post-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-red);
}

.related-post-placeholder i {
    font-size: 3rem;
    color: white;
    opacity: 0.5;
}

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

.related-post-category {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid var(--primary-red);
    color: var(--primary-red);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.related-post-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.related-post-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* ================================
   Footer
   ================================ */

.modern-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.footer-top {
    padding: 4rem 0 3rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.footer-brand img {
    height: 40px;
    width: auto;
    transition: filter var(--transition);
}

.footer-brand span {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.footer-description {
    color: var(--text-secondary);
    line-height: 1.7;
}

.footer-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

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

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-red);
}

/* Footer Categories Grid */
.footer-categories-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.footer-categories-column {
    display: flex;
    flex-direction: column;
}

.footer-category-item {
    margin-bottom: 8px;
}

.footer-category-item a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    display: block;
    padding: 2px 0;
}

.footer-category-item a:hover {
    color: var(--primary-red);
    transform: translateX(3px);
}

@media (max-width: 768px) {
    .footer-categories-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .footer-categories-column {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .footer-category-item {
        margin-bottom: 0;
    }
}

/* Newsletter Form */
.newsletter-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.newsletter-form {
    margin-top: 0;
}

.newsletter-input-group {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.85rem;
    height: 40px;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1);
}

.newsletter-form input::placeholder {
    color: var(--text-muted);
}

.newsletter-form button {
    padding: 10px 14px;
    background: var(--primary-red);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-form button:hover {
    background: var(--primary-red-hover);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .newsletter-input-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .newsletter-form input,
    .newsletter-form button {
        height: 44px;
        font-size: 0.9rem;
    }
}

.footer-bottom {
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
}

.copyright {
    color: var(--text-muted);
    margin: 0;
}

.footer-bottom-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-legal-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
}

.footer-legal-links a:hover {
    color: var(--primary-red);
}

.footer-separator {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.admin-footer-link {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.admin-footer-link:hover {
    color: var(--primary-red-hover);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-red);
    color: white;
    border-color: var(--primary-red);
}

.admin-footer-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.admin-footer-link:hover {
    background: var(--primary-red);
    color: white;
    border-color: var(--primary-red);
}

/* ================================
   Back to Top & Admin Secret Link
   ================================ */

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 55px;
    height: 55px;
    background: var(--primary-red);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 998;
}

.back-to-top.show {
    display: flex;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}


/* ================================
   Responsive
   ================================ */

@media (max-width: 991px) {
    .hero-illustration {
        height: 400px;
        margin-top: 3rem;
    }
    
    .illustration-card {
        padding: 1.5rem;
    }
    
    .illustration-card i {
        font-size: 2rem;
    }
    
    .navbar-collapse {
        background: var(--bg-card);
        padding: 1rem;
        border-radius: 12px;
        margin-top: 1rem;
        border: 1px solid var(--border-color);
    }
    
    .footer-social {
        justify-content: flex-start;
        margin-top: 1rem;
    }
}

@media (max-width: 767px) {
    .footer-bottom-right {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        text-align: center;
    }
    
    .footer-legal-links {
        justify-content: center;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: space-between;
        gap: 1.5rem;
    }
    
    .stat-item {
        flex: 1;
        text-align: center;
    }
    
    .contact-wrapper {
        padding: 2rem 1.5rem;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    .post-detail-card {
        padding: 2rem 1.5rem;
    }
    
    .footer-bottom-right {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .footer-social {
        justify-content: flex-start;
    }
}

@media (max-width: 575px) {
    .stat-box h4 {
        font-size: 2rem;
    }
}
