/* Sosyal medya ikonları için yeni stil */
.footer-social li img {
    width: 35px;
    height: 35px;
    transition: all 0.3s ease;
    filter: none; /* Orijinal renkler korunuyor */
}

.footer-social li:hover img {
    transform: scale(1.1); /* Hover'da büyüyor */
}/* mobile.css - 767px ve altı ekranlar için */
.navbar {
    padding: 0 5%;
}

.logo-img {
    height: 35px;
}

.nav-links {
    display: none;
}

.search-container {
    display: none;
}

/* Sosyal medya ikonları için yeni stil */
.footer-social li img {
    width: 35px;
    height: 35px;
    transition: all 0.3s ease;
    filter: none; /* Orijinal renkler korunuyor */
}

.footer-social li:hover img {
    transform: scale(1.1); /* Hover'da büyüyor */
}

/* mobile.css - 767px ve altı ekranlar için */

/* Mobil overflow ve genişlik düzenlemeleri */
@media (max-width: 767px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }
    
    * {
        max-width: 100%;
        box-sizing: border-box;
    }
}

.navbar {
    padding: 0 5%;
    width: 100%;
    max-width: 100%;
}

.logo-img {
    height: 40px;
    transition: transform 0.3s ease;
}

.logo a:hover .logo-img {
    transform: scale(1.05);
}

.nav-links {
    display: none;
}

.search-container {
    display: none;
}

/* Modern Burger Menu (simplified, clean) */
.burger-menu {
    display: block;
    cursor: pointer;
    z-index: 1001;
    padding: 6px;
    background: transparent;
    border: none;
    border-radius: 10px;
    transition: transform 0.25s ease;
    box-shadow: none;
}

.burger-menu:hover {
    transform: translateY(-1px);
}

/* Mobile positioning */
/* burger button uses flow position on mobile */

.burger-icon {
    width: 24px;
    height: 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Stronger specificity and important flags to win over generic styles */
.burger-menu .burger-icon span {
    display: block;
    height: 2px;
    width: 100%;
    background: #111 !important;
    border-radius: 2px;
    transition: transform 0.35s ease, opacity 0.2s ease, background-color 0.35s ease;
    transform-origin: center;
}

/* Modern X dönüşümü - use parent open state */
.burger-menu.open .burger-icon span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
    background: #111 !important;
}

.burger-menu.open .burger-icon span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0.6);
}

.burger-menu.open .burger-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    background: #111 !important;
}

/* Visual feedback when open - reverted to simple */

/* Modern Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
    opacity: 0;
    transform: translateX(-100%);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    overscroll-behavior: contain;
    padding-top: 80px;
}

/* Mobile menu close (X) button */
.mobile-menu-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(0,0,0,0.04);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.mobile-menu-close:hover { 
    background: rgba(0,0,0,0.08);
    transform: scale(1.03);
}

.mobile-menu-close span {
    position: absolute;
    width: 18px;
    height: 2px;
    background: #111;
    border-radius: 2px;
}

.mobile-menu-close span:first-child { transform: rotate(45deg); }
.mobile-menu-close span:last-child { transform: rotate(-45deg); }

/* Mobile menu header/footer and improved list spacing */
.mobile-menu-header {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.mobile-menu-header .mm-logo { height: 26px; width: auto; }
.mobile-menu-header .mm-title { font-weight: 700; font-size: 14px; color: #1a202c; }

.mobile-menu ul { padding: 80px 20px 16px; gap: 10px; }
.mobile-menu li + li { margin-top: 0; }
.mobile-menu a { padding: 14px 16px; font-size: 16px; }

.mobile-menu-footer {
    margin-top: auto;
    padding: 10px 20px 24px;
}
.mm-social { display: flex; align-items: center; gap: 12px; }
.mm-social img { width: 22px; height: 22px; }

.mobile-menu.open {
    display: flex;
    flex-direction: column;
    opacity: 1;
    transform: translateX(0);
}

.mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-menu li {
    margin: 0;
    transform: translateX(-30px);
    opacity: 0;
    transition: all 0.3s ease;
}

.mobile-menu.open li {
    transform: translateX(0);
    opacity: 1;
}

.mobile-menu.open li:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.open li:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.open li:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.open li:nth-child(4) { transition-delay: 0.25s; }

.mobile-menu a {
    display: block;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(17, 24, 39, 0.06);
    border-radius: 12px;
    margin: 0;
    transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease, border-color 0.25s ease;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
}

.mobile-menu a:hover {
    background: rgba(17, 24, 39, 0.05);
    color: #111827;
    border-color: rgba(17, 24, 39, 0.12);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Mobile Search */
.mobile-search {
    margin: 12px 20px 0;
    position: relative;
    transform: translateY(10px);
    opacity: 0;
    transition: opacity 0.2s ease 0.15s, transform 0.2s ease 0.15s;
}

.mobile-menu.open .mobile-search {
    transform: translateY(0);
    opacity: 1;
}

.mobile-search input {
    width: 100%;
    height: 44px;
    padding: 12px 50px 12px 14px;
    border: 1px solid rgba(17, 24, 39, 0.12);
    border-radius: 12px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mobile-search input:focus {
    outline: none;
    border-color: rgba(17, 24, 39, 0.3);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.mobile-search .search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    transition: opacity 0.15s ease;
}

.mobile-search .search-icon:hover { opacity: 0.8; }

.mobile-search .search-img {
    width: 24px;
    height: 24px;
    filter: none;
    display: block;
}

/* Mobile Menu Backdrop */
.mobile-menu-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 999;
    opacity: 0;
    transition: all 0.3s ease;
}

.mobile-menu-backdrop.show {
    display: block;
    opacity: 1;
}

main {
    padding-top: 80px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Responsive Slider ve Günün Alıntısı */
@media (max-width: 767px) {
    .hero-section {
        flex-direction: column;
        margin-top: 80px;
        padding: 0;
    }

    .slider-container {
        width: 100%;
        height: 300px;
        margin: 10px 0;
    }

    .daily-quote {
        width: 100%;
        height: 380px;
        margin: 10px 0;
        background: linear-gradient(135deg, #ffffff 0%, #f9f2f1 100%);
        border-radius: 20px;
        box-shadow: 0 8px 25px rgba(255, 107, 107, 0.15);
        border: 1px solid rgba(255, 107, 107, 0.1);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .slide-content {
        left: 15px;
        bottom: 20px;
        max-width: 70%;
    }

    .slide-content h2 {
        font-size: 18px;
        margin-bottom: 5px;
    }

    .slide-content p {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .quote-container {
        padding: 25px 20px;
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .quote-tabs {
        display: flex;
        justify-content: center;
        margin-bottom: 20px;
        background: transparent;
        border-radius: 0;
        padding: 0;
        border: none;
        border-bottom: 2px solid rgba(255, 107, 107, 0.2);
    }

    .tab-btn {
        flex: 1;
        padding: 12px 16px;
        background: transparent;
        border: none;
        color: #666;
        font-size: 13px;
        font-weight: 600;
        border-radius: 0;
        transition: all 0.3s ease;
        cursor: pointer;
        position: relative;
    }

    .tab-btn::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 0;
        height: 2px;
        background: #ff6b6b;
        transition: width 0.3s ease;
    }

    .tab-btn.active {
        background: transparent;
        color: #ff6b6b;
        box-shadow: none;
        transform: none;
    }

    .tab-btn.active::after {
        width: 100%;
    }

    .quote-content {
        flex: 1;
        position: relative;
    }

    .quote-item {
        padding: 0;
        height: 100%;
        display: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        animation: fadeIn 0.5s ease;
    }

    .quote-item.active {
        display: flex;
    }

    .quote-icon {
        margin-bottom: 15px;
        text-align: center;
        flex-shrink: 0;
    }

    .quote-icon img {
        width: 40px;
        height: 40px;
        display: block;
        margin: 0 auto;
        filter: none;
        opacity: 0.8;
    }

    .quote-item h3 {
        font-size: 16px;
        margin-bottom: 15px;
        color: #333;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .quote-item p {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 15px;
        color: #555;
        flex-grow: 1;
        overflow-y: auto;
        word-wrap: break-word;
        max-height: 180px;
        text-align: center;
        font-style: italic;
    }

    .quote-source {
        font-size: 12px;
        color: #ff6b6b;
        font-style: italic;
        margin-top: 10px;
        flex-shrink: 0;
        font-weight: 500;
    }

    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .prev-btn {
        left: 10px;
    }

    .next-btn {
        right: 10px;
    }
}

/* kitablar ve jurnallar cardi */
@media (max-width: 767px) {
    .cards-container {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .card {
        width: 280px;
        height: 380px;
    }

    .journal-detail-page .journals-grid {
        grid-template-columns: 1fr;
        gap: clamp(14px, 4vw, 20px);
        padding: 0 clamp(10px, 4vw, 18px);
    }

    .journal-detail-page .journal-image {
        aspect-ratio: 3 / 4;
        max-height: min(460px, 75vh);
        min-height: unset;
    }

    .journal-detail-page .journal-issues-title {
        font-size: clamp(1.2rem, 5.5vw, 1.45rem);
        padding: 0 8px;
    }
}

@media (min-width: 480px) and (max-width: 767px) {
    .journal-detail-page .journals-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .journal-detail-page .journal-image {
        max-height: min(400px, 55vw);
    }
}

/* Jurnallar - mobil düzen ve modern görsel iyileştirmeler */
@media (max-width: 767px) {
    .journals-header {
        margin: 20px 0 10px;
        padding: 0 16px;
        text-align: center;
    }
    .journals-header h1 {
        font-size: 22px;
        margin: 0 0 6px;
    }
    .journals-header p {
        font-size: 14px;
        color: #4a5568;
        margin: 0;
    }

    .journals-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 10px 16px 24px;
    }

    .journal-card {
        width: 100%;
    }

    .journal-image {
        position: relative;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 8px 20px rgba(0,0,0,0.08);
        background: #fff;
    }

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

    .journal-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(0,0,0,0.35), rgba(0,0,0,0.05));
        display: flex;
        align-items: flex-end;
        padding: 14px;
    }

    .journal-info {
        width: 100%;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        border-radius: 12px;
        padding: 12px 14px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    }

    .journal-info h3 {
        font-size: 16px;
        margin: 0 0 8px;
        color: #1a202c;
    }

    .journal-info p {
        font-size: 13px;
        color: #4a5568;
        margin: 0 0 10px;
    }

    .read-btn,
    .journal-info .read-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 10px 14px;
        font-size: 14px;
        font-weight: 600;
        color: #fff;
        background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
        border-radius: 10px;
        text-decoration: none;
        box-shadow: 0 6px 16px rgba(255, 107, 107, 0.25);
        border: none;
    }

    .read-btn span { margin-left: 6px; }
}

/* footer */
@media (max-width: 767px) {

    .footer-container {

        flex-direction: column;
        /* Dikey düzen */

        align-items: center;
        /* Ortala */

    }


    .footer-links,
    .footer-contact,
    .footer-social {

        margin: 10px 0;
        /* Dikey boşluk */

        text-align: center;
        /* Metni ortala */

    }


    .footer-links h4,
    .footer-contact h4,
    .footer-social h4 {

        font-size: 16px;
        /* Başlık boyutu */

    }


    .footer-links a,
    .footer-social a {

        font-size: 14px;
        /* Bağlantı boyutu */

    }

}
    /* jurnallar footer */
      @media only screen and (max-width: 767px) {
        /* Jurnallar içerikleri mobilde alt alta gelsin */        
        main.container {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 20px;
        }

        /* Footer sosyal medya ikonlarını ortala */
        .footer-social ul {
            display: flex;
            justify-content: center;
            gap: 6px;
            padding: 0;
            margin: 0 auto;
        }

        .footer-social {
            text-align: center;
        }
    }
    /* jurnallar */
    @media (max-width: 767px) {
        footer {
            padding: 15px 10px;
        }

        .footer-container {
            flex-direction: column;
            align-items: center;
        }

        .footer-links, .footer-contact, .footer-social {
            margin-bottom: 15px;
            text-align: center;
            width: 100%;
        }

        /* Mobil görünümde jurnallar için ek düzeltme */
        .container .glass {
            margin-bottom: 20px;
            width: 200px; /* Daha küçük boyut */
            height: 230px;
        }
    }