/* style.css */
/* Google Fonts'tan Oswald'ı ekleyelim */
@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@400;700&display=swap");
/* Google Fonts'tan Playfair Display'i ekleyelim */
@import url("https://fonts.googleapis.com/css2?family=Lora:wght@400;700&family=Merriweather:wght@400;700&display=swap");

.right-top {
    font-family: "Oswald", sans-serif;
    /* Oswald fontu */
    font-size: 16px;
    font-weight: 700;
    color: #000;
    /* siyah */
}

/* Added mobile hamburger menu styles and improved mobile text layout */

/* ========= Mobile Menu Toggle Button ========= */
.mobile-menu-toggle {
    display: none;
    /* Hidden by default on all screens */
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 4px;
    z-index: 1000;
}

/* Ensure hamburger button is completely hidden on desktop and tablet screens */
@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none !important;
        visibility: hidden;
        position: absolute;
        left: -9999px;
    }
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: #111;
    transition: all 0.3s ease;
    border-radius: 2px;
}

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

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

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

/* Improved mobile text layout for banner */
.mobile-line {
    display: inline;
}

/* ========= Temel Ayarlar ========= */
:root {
    --osu-red: #c02f2f;
    --maxw: 1140px;
    --content-w: 760px;
    --sidebar-w: 340px;
    --gap: 40px;
    --radius: 12px;

    --fs-small: 13px;
    --fs-medium: 20px;
    --fs-large: 36px;
    --fs-xlarge: 42px;
    --fs-body: 16px;
    --line: 1.6;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: "Gotham SSm A", "Gotham SSm B", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: var(--fs-body);
    line-height: var(--line);
    color: #111;
    background: #fdfdfd;
    /*navbar üstü ve kırmızı banner altı*/
}

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

a {
    color: #00539b;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ========= Üst OSU çubuğu ========= */

#osu_navbar {
    background: #3a3a3a;
    border-bottom: 1px solid #e5e5e5;
    font-size: 13px;
}

#osu_navbar .container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#osu_navbar .univ_name a {
    color: #ddd6d6;
    font-weight: 600;
}

#osu_navbar .links ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 14px;
}

#osu_navbar .links a {
    color: #ececec;
}

/* ========= Site Başlığı (banner) ========= */
.site-header {
    background: var(--osu-red);
    color: #fff;
}

.site-header .site-branding {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.site-branding .osu-brand-text {
    font-size: 14px;
    opacity: 0.9;
}

.site-branding .site-title {
    font-size: 28px;
    font-weight: 700;
}

.site-branding .site-title a {
    color: #fff;
}

.site-branding .site-description {
    font-size: 16px;
}

/* ========= Ana Navigasyon ========= */
/*navbar*/
.navigation-main {
    background: #ffffff;
    border-bottom: px solid #e9e9e9;
}

.navigation-main .inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 6px;
    font-size: 20px;
}

.menu {
    display: flex;
    gap: 24px;
}

.menu a {
    display: inline-block;
    font-family: "Slabo 27px", serif;
    font-weight: 400;
    font-style: normal;
    padding: 3px 1px;
    color: #111;
    border-bottom: 4px solid transparent;
    font-weight: 350;
    letter-spacing: .02em;
}

.menu a:hover,
.menu .current>a {
    border-bottom-color: var(--osu-red);
}

/* ========= Layout: içerik + sağ sütun ========= 
RESORURCES BAŞLIK
*/
.site-main {
    background: #ece5e583;
    max-width: var(--maxw);
    /* sağ/sol sınır */
    margin: 0 auto;
    /* ortalama */
    padding: 24px 16px;
    /* kenarlardan iç boşluk */
    /* opsiyonel: köşeler yuvarlatılsın */
}

.wrap {
    max-width: var(--maxw);
    margin: auto;
    padding: 24px 16px;
}

.content-grid {
    display: grid;
    grid-template-columns: var(--content-w) var(--gap) var(--sidebar-w);
    grid-template-areas: "content . sidebar";
    align-items: start;
}

/* ========= Makale / içerik ========= */
.entry-header .entry-title {
    font-size: var(--fs-large);
    font-family: "Slabo 27px", serif;
    font-weight: 400;
    font-style: normal;
    margin: 8px 0 16px;
}

.entry-content p {
    margin: 0 0 14px;
}

.entry-content strong {
    font-weight: 700;
}

.entry-content a {
    color: #00539b;
    text-decoration: underline;
    text-underline-offset: 2px;
}

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

.site-footer {
    background: #3a3a3a;
    border-top: 1px solid #e5e5e5;
    margin-top: 32px;
    font-size: 14px;
    color: #b9b2b2;
}

.site-footer .accessibility-notice {
    font-size: 14px;
    color: #b9b2b2;
}

.site-footer .footer-content {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 24px 16px 40px;
    display: grid;
    gap: 16px;
}

.osu-contact-name {
    font-weight: 700;
}

.osu-contact,
.footer-text {
    font-size: 14px;
    color: #b9b2b2;
}

/* ========= Yardımcı ========= */
.sr-only {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.site-header {
    background-color: #a10101;
    /* kırmızı banner */
    color: #fff;
    padding: 30px 24px;
    /* banner yüksekliği artırıldı */
}

.kitas {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-weight: 700;
    font-size: 30px;

    border-right: 3px solid white;
    /* Dikey çizgi */
    padding-right: 7px;
    /* Yazıyla çizgi arasındaki boşluk */
    margin-right: 16px;
    /* Çizgi ile yanındaki yazı arasındaki boşluk */
}

/*kitas yanındaki yazı */
.banner-text {
    font-size: 23px;
    font-weight: 550;
    max-width: 500px;
    font-family: "EB Garamond", Garamond, serif;
    text-transform: uppercase;
    /* tüm harfleri büyük yapar */
    color: white;

    padding: 8px 12px;

    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 10px;

    /* Kelimeler arası boşluğu artır */
    word-spacing: 4px;
    /* istediğin değeri deneyebilirsin */

    /* Satırlar arası boşluk */
    line-height: 1.8;
    /* 1.5, 1.8, 2 gibi değerler deneyebilirsin */
}

.banner-text span {
    display: inline-block;
    /* inline-block yapıyoruz ki ::first-letter çalışsın */
    text-decoration: underline;
    /* buraya ekledik */
    text-decoration-thickness: 1px;
    text-underline-offset: 10px;
}

.banner-text span::first-letter {
    font-size: 35px;
    /* istediğin büyüklük */
    line-height: 1;
    vertical-align: top;
    /* hizalama */
}

.banner-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--maxw, 1200px);
    margin-left: auto;
    margin-right: auto;
    padding: 16px 24px;
    box-sizing: border-box;
}

.banner-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.banner-right {
    text-align: right;
}

/* sağa montelediğim kitas proje tanıtım yazısı*/
/* Google Fonts'tan Oswald'ı ekleyelim */

.right-top {
    font-family: "Oswald", sans-serif;
    /* Oswald fontu */
    font-size: 23px;
    font-weight: 600;
    color: #f7f7f7;
    /* siyah */
}

/* tübitak projesi yazısı*/
.right-bottom {
    font-family: "Playfair Display", serif;
    /* Playfair Display fontu */
    font-size: 20px;
    font-weight: 400;
    color: #ffd700;
    /* altın sarısı */
}

/* Added comprehensive responsive design for tablets and mobile */

/* ========= TABLET RESPONSIVE (768px - 1024px) ========= */
@media (max-width: 1024px) and (min-width: 769px) {

    /* Tablet navigation adjustments */
    .navigation-main .inner {
        padding: 0 12px;
        font-size: 18px;
    }

    .menu {
        gap: 20px;
    }

    /* Banner adjustments for tablet */
    .banner-flex {
        padding: 16px 20px;
    }

    .banner-text {
        font-size: 20px;
        max-width: 400px;
    }

    .banner-text span::first-letter {
        font-size: 30px;
    }

    .right-top {
        font-size: 20px;
    }

    .right-bottom {
        font-size: 18px;
    }

    /* Content grid for tablet */
    :root {
        --content-w: 1fr;
        --sidebar-w: 1fr;
        --gap: 0px;
    }

    .content-grid {
        grid-template-columns: 1fr;
        grid-template-areas: "content" "sidebar";
        row-gap: 32px;
    }

    .entry-header .entry-title {
        font-size: 32px;
    }
}

/* ========= MOBILE RESPONSIVE (up to 768px) ========= */
@media (max-width: 768px) {

    /* Improved mobile text layout for banner */
    .mobile-line {
        display: block;
        line-height: 1.4;
    }

    .banner-text {
        text-align: center;
        line-height: 1.4;
    }

    .banner-text span {
        text-decoration: none;
    }

    .banner-text .mobile-line {
        text-decoration: underline;
        text-decoration-thickness: 1px;
        text-underline-offset: 8px;
        margin-bottom: 4px;
    }

    /* Mobile navigation with collapsible menu */
    .navigation-main .inner {
        padding: 0 8px;
        font-size: 16px;
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .mobile-menu-toggle {
        display: flex;
        /* Only show hamburger button on mobile screens */
        order: 2;
    }

    .menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .menu.menu-open {
        max-height: 300px;
        border-top: 1px solid #e9e9e9;
    }

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

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

    .menu a {
        display: block;
        padding: 16px 20px;
        font-size: 16px;
        border-bottom: none;
        width: 100%;
        box-sizing: border-box;
        text-align: left;
    }

    .menu a:hover,
    .menu .current>a {
        background-color: #f8f8f8;
        border-bottom: none;
        color: var(--osu-red);
    }

    /* Top navbar mobile adjustments */
    #osu_navbar .container {
        padding: 8px 12px;
        flex-direction: column;
        gap: 8px;
    }

    #osu_navbar .links ul {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }

    /* Banner mobile layout */
    .banner-flex {
        flex-direction: column;
        text-align: center;
        padding: 20px 16px;
        gap: 20px;
    }

    .banner-left {
        flex-direction: column;
        gap: 12px;
    }

    .kitas {
        writing-mode: horizontal-tb;
        text-orientation: mixed;
        font-size: 24px;
        border-right: none;
        border-bottom: 3px solid white;
        padding-right: 0;
        padding-bottom: 8px;
        margin-right: 0;
        margin-bottom: 12px;
    }

    .banner-text {
        font-size: 18px;
        max-width: 100%;
        text-align: center;
        line-height: 1.6;
    }

    .banner-text span::first-letter {
        font-size: 24px;
    }

    .banner-right {
        text-align: center;
    }

    .right-top {
        font-size: 18px;
    }

    .right-bottom {
        font-size: 16px;
    }

    /* Content adjustments */
    .site-main {
        padding: 16px 12px;
    }

    .wrap {
        padding: 16px 12px;
    }

    .content-grid {
        grid-template-columns: 1fr;
        grid-template-areas: "content" "sidebar";
        row-gap: 24px;
    }

    .entry-header .entry-title {
        font-size: 28px;
        margin: 8px 0 12px;
    }

    .entry-content {
        font-size: 15px;
    }

    /* Footer mobile */
    .site-footer .footer-content {
        padding: 20px 12px 32px;
        text-align: center;
    }

    .osu-contact {
        text-align: center;
    }
}

/* ========= SMALL MOBILE (up to 480px) ========= */
@media (max-width: 480px) {

    /* Extra small mobile adjustments */
    .banner-flex {
        padding: 16px 12px;
    }

    .kitas {
        font-size: 20px;
    }

    .banner-text {
        font-size: 16px;
        word-spacing: 2px;
    }

    .banner-text span::first-letter {
        font-size: 20px;
    }

    .right-top {
        font-size: 16px;
    }

    .right-bottom {
        font-size: 14px;
    }

    .navigation-main .inner {
        font-size: 14px;
    }

    .menu a {
        font-size: 14px;
        padding: 6px 2px;
    }

    .entry-header .entry-title {
        font-size: 24px;
    }

    .entry-content {
        font-size: 14px;
    }

    .site-main,
    .wrap {
        padding: 12px 8px;
    }
}