/*
Theme Name: Healthline
Theme URI: https://kombialsat.com.tr/
Author: Healthline Team
Author URI: https://kombialsat.com.tr/
Description: A modern, responsive WordPress theme inspired by Healthline, featuring clean design, mobile-first approach, and comprehensive health content sections.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: healthline
Tags: health, wellness, blog, news, responsive, mobile-first, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   LAYOUT
   ============================================ */
.site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1;
}

/* Container */
.header-container,
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    width: 100%;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    gap: 20px;
    position: relative;
    width: 100%;
    max-width: 100%;
}

.site-branding {
    flex-shrink: 0;
}

.site-logo {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    text-decoration: none;
    display: block;
}

.site-logo:hover {
    color: #00a8cc;
}

.custom-logo {
    max-height: 40px;
    width: auto;
}

/* Menu Toggle Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
    z-index: 1002;
    position: relative;
}

.menu-toggle-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 24px;
    height: 18px;
}

.menu-toggle-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #2c3e50;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Navigation */
.main-navigation {
    flex: 1;
    position: relative;
    z-index: 1000;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
    align-items: center;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    padding: 8px 0;
    display: block;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #00a8cc;
}

/* Submenu */
.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 10px 0;
    margin: 0;
    min-width: 200px;
    display: none;
    z-index: 1000;
    border-radius: 4px;
}

.nav-menu .menu-item-has-children:hover > .sub-menu {
    display: block;
}

.nav-menu .sub-menu li {
    padding: 0;
}

.nav-menu .sub-menu a {
    padding: 10px 20px;
    font-size: 14px;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    padding: 5px;
    color: #333;
}

.search-form {
    position: relative;
    display: none;
}

.search-form.active {
    display: block;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 300px;
    z-index: 1000;
}

.search-form-wrapper {
    position: relative;
}

.search-form input[type="search"] {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-top: none;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1001;
}

.search-suggestion-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

.search-suggestion-item:hover {
    background-color: #f5f5f5;
}

.subscribe-btn,
.signin-btn {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s;
}

.subscribe-btn:hover {
    background-color: #f0f0f0;
}

.signin-btn {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ============================================
   CONTENT SECTIONS
   ============================================ */
.site-main {
    padding: 40px 0;
}

.content-section,
.featured-articles,
.explore-by-section,
.newsletter-section,
.this-just-in-section,
.videos-section,
.product-reviews-section,
.spotlight-section,
.sponsored-topics-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.view-all-link {
    color: #00a8cc;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.view-all-link:hover {
    text-decoration: underline;
}

/* Featured Articles */
.featured-articles {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.featured-article {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.featured-article-large {
    min-height: 400px;
}

.featured-article-small {
    min-height: 200px;
}

.featured-article-image-wrapper,
.featured-article-image-wrapper-small {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.featured-article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.featured-article-image-wrapper:hover .featured-article-image {
    transform: scale(1.05);
}

.featured-article-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 30px;
    color: #fff;
}

.featured-article-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
}

.featured-article-title a {
    color: #fff;
    text-decoration: none;
}

.featured-article-excerpt {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.featured-article-content-small {
    padding: 20px;
}

.featured-article-content-small .featured-article-title {
    font-size: 20px;
    color: #2c3e50;
}

.featured-article-content-small .featured-article-excerpt {
    color: #666;
    font-size: 14px;
}

/* Explore By Section */
.explore-by-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.explore-item {
    text-align: center;
    padding: 30px 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
}

.explore-item:hover {
    background-color: #00a8cc;
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 168, 204, 0.3);
}

.explore-icon {
    font-size: 48px;
    font-weight: 700;
    color: #00a8cc;
    margin-bottom: 10px;
}

.explore-item:hover .explore-icon {
    color: #fff;
}

.explore-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.explore-item:hover .explore-item-title {
    color: #fff;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 12px;
    padding: 60px 40px;
    display: flex;
    align-items: center;
    gap: 40px;
    margin: 60px auto;
}

.newsletter-image {
    flex-shrink: 0;
}

.newsletter-image img {
    max-width: 120px;
    height: auto;
}

.newsletter-content {
    flex: 1;
}

.newsletter-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.newsletter-subtitle {
    font-size: 18px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.newsletter-description {
    font-size: 16px;
    margin-bottom: 25px;
    opacity: 0.9;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.newsletter-input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
}

.newsletter-submit {
    padding: 12px 30px;
    background-color: #fff;
    color: #667eea;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.newsletter-submit:hover {
    background-color: #f0f0f0;
    transform: scale(1.05);
}

.newsletter-privacy {
    font-size: 12px;
    opacity: 0.8;
}

.newsletter-privacy a {
    color: #fff;
    text-decoration: underline;
}

/* Articles Grid */
.articles-grid,
.this-just-in-grid,
.videos-grid,
.sponsored-topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.article-card,
.this-just-in-card,
.video-card,
.sponsored-topic-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.article-card:hover,
.this-just-in-card:hover,
.video-card:hover,
.sponsored-topic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.article-image,
.this-just-in-image img,
.video-image,
.sponsored-topic-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.article-content,
.this-just-in-content,
.video-card-content,
.sponsored-topic-title {
    padding: 20px;
}

.article-title,
.this-just-in-title,
.video-card-title,
.sponsored-topic-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.article-title a,
.this-just-in-title a,
.video-card-title,
.sponsored-topic-title a {
    color: #2c3e50;
    text-decoration: none;
}

.article-title a:hover,
.this-just-in-title a:hover,
.video-card-title:hover,
.sponsored-topic-title a:hover {
    color: #00a8cc;
}

.article-excerpt,
.this-just-in-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* Video Cards */
.video-thumbnail {
    position: relative;
    overflow: hidden;
}

.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s;
}

.video-card:hover .video-play-overlay {
    opacity: 1;
}

.play-button {
    width: 60px;
    height: 60px;
}

/* Product Reviews */
.product-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 30px;
}

.product-review-item {
    text-align: center;
    padding: 30px 20px;
    background-color: #f9f9f9;
    border-radius: 50%;
    width: 180px;
    height: 180px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
}

.product-review-item:hover {
    background-color: #00a8cc;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 168, 204, 0.3);
}

.product-review-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.product-review-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.product-review-item:hover .product-review-title {
    color: #fff;
}

/* Spotlight Section */
.spotlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.spotlight-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.spotlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.spotlight-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

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

.spotlight-content {
    padding: 20px;
    background-color: #fff;
}

.spotlight-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2c3e50;
}

.sponsored-badge {
    display: inline-block;
    padding: 4px 8px;
    background-color: #f0f0f0;
    color: #666;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
}

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

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

.footer-menu a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-menu a:hover {
    color: #fff;
}

.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s;
}

.social-link:hover {
    background-color: #00a8cc;
    transform: scale(1.1);
}

.footer-newsletter-form {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-newsletter-input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
}

.footer-newsletter-submit {
    padding: 10px 20px;
    background-color: #00a8cc;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.footer-newsletter-submit:hover {
    background-color: #007a9c;
}

.newsletter-privacy {
    font-size: 12px;
    opacity: 0.8;
}

.newsletter-privacy a {
    color: #fff;
    text-decoration: underline;
}

.footer-brands {
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.footer-brands-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    opacity: 0.8;
}

.footer-brands-list {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-brands-list a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-brands-list a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 5px;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 968px) {
    .header-container {
        flex-wrap: wrap;
        padding: 12px 15px;
    }

    .site-branding {
        order: 1;
    }

    .menu-toggle {
        display: block !important;
        visibility: visible;
        opacity: 1;
        order: 3;
        margin-left: auto;
    }

    .header-actions {
        order: 2;
    }

    .main-navigation {
        order: 4;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background-color: #fff;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 1001;
        width: 100%;
        flex: 1 1 100%;
        margin-top: 0;
    }

    /* Header yüksekliğini kontrol et */
    .site-header {
        position: relative;
    }

    .main-navigation.active {
        max-height: 600px;
        overflow-y: auto;
        border-top: 1px solid #e0e0e0;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0;
        padding: 20px;
        width: 100%;
        margin: 0;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
        display: block;
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu a {
        padding: 15px 0;
        display: block;
        width: 100%;
    }

    .nav-menu .sub-menu {
        position: static;
        display: none;
        box-shadow: none;
        background-color: #f9f9f9;
        margin-left: 20px;
        margin-top: 10px;
    }

    .nav-menu .menu-item-has-children.active > .sub-menu {
        display: block;
    }

    .header-actions {
        gap: 10px;
        flex-shrink: 0;
    }

    .subscribe-btn {
        display: none;
    }

    /* Mobilde menü açıkken body scroll'u engelle */
    body.menu-open {
        overflow: hidden;
    }

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

    .newsletter-section {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-input {
        width: 100%;
    }

    .articles-grid,
    .this-just-in-grid,
    .videos-grid,
    .spotlight-grid,
    .sponsored-topics-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .explore-by-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 15px;
    }

    .product-reviews-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 20px;
    }

    .product-review-item {
        width: 150px;
        height: 150px;
    }

    .footer-top {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 12px 15px;
    }

    .section-title {
        font-size: 24px;
    }

    .featured-article-title {
        font-size: 24px;
    }

    .newsletter-title {
        font-size: 24px;
    }

    .articles-grid,
    .this-just-in-grid,
    .videos-grid,
    .spotlight-grid,
    .sponsored-topics-grid {
        grid-template-columns: 1fr;
    }

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

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

    .footer-top {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .site-main {
        padding: 20px 0;
    }

    .content-section,
    .featured-articles,
    .explore-by-section,
    .newsletter-section,
    .this-just-in-section,
    .videos-section,
    .product-reviews-section,
    .spotlight-section,
    .sponsored-topics-section {
        padding: 30px 15px;
    }

    .section-title {
        font-size: 20px;
    }

    .featured-article-title {
        font-size: 20px;
    }

    .newsletter-section {
        padding: 30px 15px;
    }

    .newsletter-title {
        font-size: 20px;
    }

    .explore-by-grid,
    .product-reviews-grid {
        grid-template-columns: 1fr;
    }
}
