/* ===============================================
   BILGI-MERKEZI.CSS — 5E Yapı Blog Page Styles
   =============================================== */

/* ---- Hero ---- */
.blog-hero {
    position: relative;
    min-height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 120px 10% 80px;
    background: var(--primary-blue);
}

.blog-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 40% at 20% 50%, rgba(251, 191, 36, 0.07) 0%, transparent 60%),
        radial-gradient(ellipse 50% 60% at 80% 30%, rgba(251, 191, 36, 0.04) 0%, transparent 60%);
    z-index: 0;
}

.blog-hero .hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
    animation: floatShape 8s ease-in-out infinite;
}

.blog-hero .s1 {
    width: 300px;
    height: 300px;
    background: rgba(251, 191, 36, 0.06);
    top: -80px;
    left: -80px;
}

.blog-hero .s2 {
    width: 200px;
    height: 200px;
    background: rgba(251, 191, 36, 0.05);
    bottom: -60px;
    right: -60px;
    animation-delay: -3s;
}

.blog-hero .s3 {
    width: 150px;
    height: 150px;
    background: rgba(251, 191, 36, 0.04);
    top: 50%;
    left: 50%;
    animation-delay: -6s;
}

@keyframes floatShape {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -20px) scale(1.05); }
    66% { transform: translate(-15px, 15px) scale(0.95); }
}

.blog-hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.blog-hero-tag {
    display: inline-block;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: var(--accent-gold);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 100px;
    margin-bottom: 20px;
}

.blog-hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 16px;
    color: var(--primary-dark); /* Dark text on light background */
}

.blog-hero-content p {
    font-size: 1.15rem;
    color: var(--text-main);
    margin-bottom: 40px;
}

/* ---- Search ---- */
.blog-hero .search-wrapper {
    position: relative;
    max-width: 480px;
    margin: 0 auto;
}

.blog-hero .search-wrapper svg {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    pointer-events: none;
}

.blog-hero .search-wrapper input {
    width: 100%;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 100px;
    padding: 16px 50px 16px 50px;
    color: var(--text-light);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.blog-hero .search-wrapper input::placeholder {
    color: rgba(148, 163, 184, .6);
}

.blog-hero .search-wrapper input:focus {
    border-color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.1);
}

#clearSearch {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.4rem;
    cursor: pointer;
    display: none;
    padding: 4px 8px;
    line-height: 1;
    border-radius: 50%;
    transition: all 0.2s;
}

#clearSearch:hover {
    color: var(--accent-gold);
    background: rgba(251, 191, 36, 0.1);
}

#clearSearch.visible {
    display: block;
}

/* ---- Blog Section ---- */
.blog-section {
    padding: 80px 6%;
    max-width: 1400px;
    margin: 0 auto;
}

/* ---- Filter Bar ---- */
.blog-section .filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.blog-section .filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    padding: 10px 22px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.blog-section .filter-btn:hover {
    background: rgba(251, 191, 36, 0.08);
    border-color: rgba(251, 191, 36, 0.3);
    color: var(--accent-gold);
    transform: translateY(-2px);
}

.blog-section .filter-btn.active {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: #0f172a;
}

/* ---- Results Info ---- */
.blog-section .results-info {
    margin-bottom: 30px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ---- Blog Grid ---- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 28px;
}

/* ---- Blog Card ---- */
.blog-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    border-color: rgba(251, 191, 36, 0.3);
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(251, 191, 36, 0.1);
}

.blog-card.hidden {
    display: none;
}

.blog-card.fade-in {
    animation: cardFadeIn 0.4s ease-out forwards;
}

@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---- Card Body ---- */
.blog-card-body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    gap: 10px;
    flex-wrap: wrap;
}

.blog-category-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 100px;
}

.blog-category-badge.mekanik {
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: var(--accent-gold);
}

.blog-category-badge.enerji {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.blog-category-badge.yangin {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.blog-category-badge.bakim {
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #3b82f6;
}

.blog-category-badge.teknoloji {
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #a855f7;
}

.blog-date {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.blog-card-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-light);
    line-height: 1.4;
}

.blog-card-body p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

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

.read-more-btn {
    background: none;
    border: none;
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    padding: 6px 0;
    transition: all 0.2s;
}

.read-more-btn:hover {
    color: #fff;
    text-decoration: underline;
}

/* ---- Empty State ---- */
.blog-section .empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.blog-section .empty-state svg {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.blog-section .empty-state p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.blog-section .empty-state button {
    background: none;
    border: 1px solid rgba(251, 191, 36, 0.4);
    color: var(--accent-gold);
    padding: 10px 24px;
    border-radius: 100px;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
}

.blog-section .empty-state button:hover {
    background: rgba(251, 191, 36, 0.1);
}

/* ---- Article Modal ---- */
.article-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.92); /* Deep Slate */
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.article-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.article-box {
    position: relative;
    max-width: 850px;
    width: 100%;
    padding: 60px;
    background: #0f172a; /* Solid Slate 900 for readability */
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 32px;
    transform: translateY(40px) scale(0.98);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.7);
}

.article-overlay.active .article-box {
    transform: translateY(0) scale(1);
}

.article-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: var(--text-light);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.article-close:hover {
    background: rgba(251, 191, 36, 0.2);
    color: var(--accent-gold);
}

.article-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 16px;
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: var(--accent-gold);
}

.article-box h2 {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: -0.04em;
    line-height: 1.2;
    color: #ffffff;
}

.article-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.article-content {
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.85;
    font-size: 1.1rem;
}

.article-content h3 {
    color: var(--accent-gold);
    font-size: 1.4rem;
    font-weight: 800;
    margin: 40px 0 16px;
    letter-spacing: -0.02em;
}

.article-content p {
    margin-bottom: 24px;
}

.article-content ul {
    padding-left: 20px;
    margin-bottom: 30px;
}

.article-content ul li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 10px;
}

.article-content ul li::marker {
    color: var(--accent-gold);
}

/* ---- CTA Section ---- */
.cta-section {
    padding: 100px 10%;
    text-align: center;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.05) 0%, transparent 60%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.cta-content h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.cta-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ---- Hamburger / Mobile ---- */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-light);
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(var(--bg-rgb), 0.98);
    backdrop-filter: blur(20px);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    padding: 100px 40px 40px;
    gap: 30px;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu.open {
    right: 0;
}

.mobile-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    opacity: 0.8;
    transition: all 0.2s;
}

.mobile-menu a:hover {
    opacity: 1;
    color: var(--accent-gold);
    padding-left: 10px;
}

.nav-active {
    color: var(--accent-gold) !important;
    opacity: 1 !important;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

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

    .blog-section .filter-bar {
        gap: 8px;
    }

    .blog-section .filter-btn {
        font-size: 0.82rem;
        padding: 9px 16px;
    }

    .article-box {
        padding: 40px 20px;
        border-radius: 20px;
    }
    .article-box h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .blog-section {
        padding: 60px 4%;
    }

    .blog-hero {
        padding: 100px 5% 60px;
    }
}

/* ---- Newsletter Section ---- */
.newsletter-section {
    padding: 80px 10%;
    text-align: center;
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.05) 0%, transparent 60%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.newsletter-content h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 900;
    margin-bottom: 15px;
    letter-spacing: -0.02em;
    color: var(--text-light);
}

.newsletter-content p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form .input-group {
    display: flex;
    gap: 10px;
    position: relative;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 16px 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: var(--text-light);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}

.newsletter-form input[type="email"]:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
}

.newsletter-form button {
    padding: 16px 30px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
}

@media (max-width: 600px) {
    .newsletter-form .input-group {
        flex-direction: column;
    }
    .newsletter-form button {
        width: 100%;
    }
}

