@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Dark mode only - these are the default styles */
:root {
    --primary-color-transparent: rgba(22, 23, 35, 0.95);
    --primary-color: #161723;
    --secondary-color: #7c97ff;
    --background-color: #1b1b1f;
    --text-color: #eef0f6;
    --hover-bg-color: rgba(124, 151, 255, 0.1);
    --hover-text-color: #7c97ff;
    --menu-bg-color: rgba(26, 26, 43, 0.98);
    --border-color: rgba(124, 151, 255, 0.2);
    --overlay-color: rgba(10, 10, 12, 0.9);
    --ituro-color: #D56828;
    --footer-text-color: #A9A9A9;
    --page-icon-color: rgb(247, 231, 51);
    --header-text-color: #eef0f6;
    --header-border-color: transparent;
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* .dark-mode class no longer needed - dark is the only mode */

/* Genel sayfa stili */
body {
    font-family: 'Poppins', 'Segoe UI', 'Arial', sans-serif;
    margin: 0;
    padding: 65px 0;
    position: relative;
    min-height: 100vh;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease;
    background-color: var(--background-color);
    color: var(--text-color);
    font-size: 0.8rem;
}

/* Sayfa arka plan örtüsü + Grid efekti */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(rgba(124, 151, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 151, 255, 0.04) 1px, transparent 1px),
        var(--overlay-color);
    background-size: 50px 50px, 50px 50px, 100% 100%;
    z-index: -1;
    pointer-events: none;
}

/* Header stili */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 20px;
    background-color: var(--primary-color-transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    height: 60px;
    position: fixed;
    top: 15px;
    left: 80px;
    right: 80px;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--header-border-color);
    box-sizing: border-box;
}

/* Scrolled state - full width header */
.header.scrolled {
    top: 0;
    left: 0;
    right: 0;
    box-shadow: var(--glass-shadow);
    border: none;
    border-bottom: 2px solid var(--header-border-color);
}

/* Header logo stili */
.header-logos {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.1);
    filter: brightness(1.1);
}

/* İTÜRO logo separator - always visible */
.logo-separator,
.ituro-header-logo-link {
    display: flex;
    align-items: center;
}

.logo-separator {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.8rem;
    font-weight: 300;
    user-select: none;
}

.ituro-header-logo {
    height: 36px;
    filter: brightness(0) invert(1);
}

/* Make logos white for dark mode */
.header-logo {
    filter: brightness(0) invert(1);
}

.header-logo:hover {
    filter: brightness(0) invert(1) brightness(1.1);
}

/* Desktop menu always visible */
.desktop-menu {
    display: none;
    /* Hidden on mobile, shown via media query */
}

/* Submenu dropdown */
.submenu {
    position: fixed;
    background-color: var(--menu-bg-color);
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    border: 1px solid var(--border-color);
}

.submenu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu a {
    padding: 12px 20px;
    text-decoration: none;
    color: var(--text-color);
    display: block;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-bottom: 1px solid var(--border-color);
}

.submenu a:last-child {
    border-bottom: none;
}

.submenu a:hover {
    background-color: var(--hover-bg-color);
    color: var(--hover-text-color);
}

/* Hamburger icon - hidden since menu removed */
.hamburger {
    display: none;
}

.submenu a {
    padding: 10px;
    text-decoration: none;
    color: var(--text-color);
    display: block;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-bottom: 1px solid var(--border-color);
}

.submenu a:last-child {
    border-bottom: none;
}

.submenu a:hover {
    background-color: var(--hover-bg-color);
    color: var(--hover-text-color);
    border-bottom-color: var(--hover-text-color);
}

/* Header ikonları stili */
.header-icons {
    display: flex;
    align-items: center;
}

.header-icon {
    cursor: pointer;
    font-size: 20px;
    color: var(--header-text-color);
    margin-left: 20px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.header-icon:hover {
    transform: scale(1.2);
    color: var(--secondary-color);
}

/* Header right buttons container */
.header-right-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
}

/* ITURO button in header */
.ituro-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: white;
    background-color: var(--ituro-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 16px;
    border: 2px solid var(--ituro-color);
    transition: all 0.2s ease;
}

.ituro-link:hover {
    background: white;
    color: var(--ituro-color);
}

/* Hide register button by default (main OTOKON site) */
.header-register-btn {
    display: none;
}

/* Hamburger menü ikonu stili */
.hamburger {
    display: block;
    margin-right: 15px;
    cursor: pointer;
}

.hamburger:hover {
    color: var(--secondary-color);
}

.hamburger.active {
    color: #a6f5ad;
}

/* Footer stili */
.footer {
    background-color: var(--primary-color-transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--header-text-color);
    padding: 15px 20px;
    position: absolute;
    width: 100%;
    bottom: 0;
    height: auto;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: background-color 0.3s ease;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.1);
    border-top: var(--glass-border);
    box-sizing: border-box;
}

/* Footer linkleri stili */
.footer a {
    color: var(--header-text-color);
    margin: 0 10px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--header-text-color);
}

/* Footer sosyal medya ikonları stili */
.footer-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--header-text-color);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.footer-icon:hover {
    background-color: var(--secondary-color);
    transform: scale(1.1);
}

/* Footer metin stili */
.footer-text {
    font-weight: 500;
    font-size: 0.9em;
    text-align: center;
    opacity: 0.8;
    color: var(--footer-text-color);
    transition: color 0.3s ease;
    margin-top: 10px;
}

.footer-text:hover {
    color: #ffffff;
}

/* Footer ikonları konumlandırma */
.footer-icons {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

#otokon_svg_a {
    display: flex;
    justify-content: center;
    align-items: center;
}



/* Mobil cihazlar için medya sorgusu */
@media (max-width: 899px) {
    body {
        background-image: none;
    }

    body::before {
        background: var(--background-color);
    }

    .header {
        height: 60px;
        padding: 10px 15px;
        top: 10px;
        left: 40px;
        right: 40px;
    }

    .header.scrolled {
        top: 0;
        left: 0;
        right: 0;
    }

    .header-logo {
        height: 35px;
        margin: 0 auto;
    }

    .hamburger {
        font-size: 22px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 8px;
        transition: background 0.2s ease, transform 0.2s ease;
    }

    .hamburger:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .hamburger.active {
        background: rgba(255, 255, 255, 0.15);
        transform: none;
    }

    .menu {
        top: 70px;
        /* Below floating header on tablet */
        left: 40px;
        height: calc(100vh - 70px);
        width: 260px;
    }

    .menu.scrolled {
        top: 60px;
        left: 0;
        height: calc(100vh - 60px);
    }

    .menu a {
        font-size: 1rem;
        padding: 18px 20px;
    }

    /* Mobile submenu parent link */
    .menu .has-submenu-mobile {
        position: relative;
    }

    .menu .has-submenu-mobile i {
        transition: transform 0.2s ease;
    }

    .menu .has-submenu-mobile.active i {
        transform: rotate(180deg);
    }

    /* Mobile submenu - slide down instead of side */
    .menu .submenu {
        position: static;
        width: 100%;
        box-shadow: none;
        border-radius: 0;
        border-left: none;
        border-right: none;
        background: rgba(0, 0, 0, 0.15);
        padding: 0;
        display: none;
        border-bottom: 1px solid var(--border-color);
    }

    .menu .submenu.active {
        display: block;
    }

    .menu .submenu a {
        padding: 14px 20px 14px 35px;
        font-size: 0.95rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

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

    .footer {
        padding: 20px 0;
    }

    .footer-icon {
        width: 35px;
        height: 35px;
    }

    .footer-icons {
        margin-bottom: 15px;
    }

    .footer-icons a {
        margin: 0 8px;
    }

    .footer-text {
        font-size: 0.8em;
        line-height: 1.4;
    }
}

/* ITURO link style - legacy, can be removed later */

/* Desktop menu styles - now always visible */
.desktop-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    gap: 5px;
}

.desktop-menu a {
    color: var(--header-text-color);
    text-decoration: none;
    padding: 8px 14px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease, background-color 0.2s ease;
    white-space: nowrap;
}

.desktop-menu a:hover {
    color: var(--hover-text-color);
    background-color: var(--hover-bg-color);
}

.desktop-menu .has-submenu {
    cursor: pointer;
}

.desktop-menu .has-submenu i {
    margin-left: 5px;
    font-size: 0.7em;
    transition: transform 0.2s ease;
}

.desktop-menu .has-submenu.active i {
    transform: rotate(180deg);
}

.desktop-menu a.ituro-link {
    background-color: var(--ituro-color);
    color: #fff;
    padding: 8px 16px;
}

.desktop-menu a.ituro-link:hover {
    background-color: #c45c1e;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 899px) {
    .desktop-menu {
        gap: 2px;
    }

    .desktop-menu a {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
}

@media (max-width: 600px) {
    .desktop-menu {
        display: none;
    }

    .header {
        justify-content: center;
    }

    .header-logos {
        margin: 0 auto;
    }
}

@media (min-width: 900px) {
    .header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 20px;
        height: 70px;
    }

    .header-logos {
        flex-shrink: 0;
    }

    .desktop-menu {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .desktop-menu a {
        color: var(--header-text-color);
        text-decoration: none;
        padding: 20px 20px;
        margin: 0 10px;
        font-size: 1.1em;
        transition: background-color 0.3s ease, color 0.3s ease;
        border-bottom: 2px solid transparent;
    }

    .desktop-menu a:hover {
        background-color: var(--hover-bg-color);
        color: var(--hover-text-color);
        border-bottom-color: transparent;
        border-radius: 8px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        transform: translateY(-1px);
    }

    .desktop-menu .has-submenu {
        position: relative;
    }

    .desktop-menu .has-submenu i {
        margin-left: 5px;
        transition: transform 0.3s ease;
    }

    .desktop-menu .has-submenu.active i {
        transform: rotate(180deg);
    }

    /* ITURO link style for desktop */
    .desktop-menu a.ituro-link {
        background-color: var(--ituro-color);
        color: var(--header-text-color);
        padding: 10px 15px;
        border-radius: 4px;
        transition: background-color 0.3s ease, transform 0.3s ease;
    }

    .desktop-menu a.ituro-link:hover {
        background-color: var(--secondary-color);
        color: var(--header-text-color);
        transform: scale(1.05);
    }

    .hamburger {
        display: none;
    }

    .menu {
        display: none;
    }

    .header-icons {
        margin-left: auto;
    }

    .footer {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        height: 60px;
    }

    .footer-text {
        margin-top: 0;
        text-align: left;
    }

    .footer-icons {
        margin-bottom: 0;
    }
}

/* Submenu styles for desktop */
@media (min-width: 900px) {
    .submenu {
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--primary-color);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 5px 5px;
        width: 200px;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
        border: 1px solid var(--secondary-color);
        opacity: 0.6;
        border: 1px solid var(--secondary-color);
    }

    .submenu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .submenu a {
        color: var(--header-text-color);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .submenu a:hover {
        background-color: var(--hover-bg-color);
        color: var(--hover-text-color);
    }
}

/* Adjust header for desktop view */
@media (min-width: 900px) {
    .header {
        justify-content: flex-start;
    }

    .header-icons {
        margin-left: auto;
    }
}

/* Mobile header adjustments */
@media (max-width: 600px) {
    .header {
        height: 54px;
        padding: 8px 12px;
        top: 8px;
        left: 20px;
        right: 20px;
    }

    .header.scrolled {
        top: 0;
        left: 0;
        right: 0;
    }

    .header-logo {
        height: 28px;
    }

    .header-icons .header-icon {
        margin-left: 10px;
        font-size: 18px;
    }

    .hamburger {
        font-size: 20px;
        width: 36px;
        height: 36px;
    }

    .menu {
        top: 62px;
        /* Below floating header on mobile */
        left: 20px;
        height: calc(100vh - 62px);
        width: 240px;
    }

    .menu.scrolled {
        top: 54px;
        left: 0;
        height: calc(100vh - 54px);
    }

    .menu a {
        padding: 16px 18px;
        font-size: 0.95rem;
    }

    /* Reduce top body padding to match the smaller header */
    body {
        padding: 54px 0;
    }
}