/* Header CSS - Top Banner ve Navbar Stilleri */

/* Top Banner Styles */
.top-banner {
    position: sticky;
    top: 0;
    z-index: 1201;
    background: linear-gradient(90deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 8px 0;
    overflow: hidden;
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
}

.phone-number {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: phonePulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

.phone-icon {
    font-size: 16px;
    animation: phoneRing 1.5s ease-in-out infinite;
}

.phone-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.phone-link:hover {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.phone-text {
    font-size: 12px;
    opacity: 0.9;
    font-weight: 500;
}

.marquee {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 20px;
    position: relative;
    flex: 1;
    margin-left: 20px;
}

.marquee span {
    font-weight: 500;
    font-size: 14px;
    position: absolute;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.marquee span:nth-child(1) {
    opacity: 1;
    animation: showText1 42s infinite;
}

.marquee span:nth-child(2) {
    animation: showText2 42s infinite;
}

.marquee span:nth-child(3) {
    animation: showText3 42s infinite;
}

.marquee span:nth-child(4) {
    animation: showText4 42s infinite;
}

.marquee span:nth-child(5) {
    animation: showText5 42s infinite;
}

.marquee span:nth-child(6) {
    animation: showText6 42s infinite;
}

.marquee span:nth-child(7) {
    animation: showText7 42s infinite;
}

.marquee span:nth-child(8) {
    animation: showText8 42s infinite;
}

.marquee span:nth-child(9) {
    animation: showText9 42s infinite;
}

.marquee span:nth-child(10) {
    animation: showText10 42s infinite;
}

.marquee span:nth-child(11) {
    animation: showText11 42s infinite;
}

.marquee span:nth-child(12) {
    animation: showText12 42s infinite;
}

/* Top Banner Animations */
@keyframes phonePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes phoneRing {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

@keyframes showText1 {
    0%, 8.33% { opacity: 1; }
    8.34%, 100% { opacity: 0; }
}

@keyframes showText2 {
    0%, 8.33% { opacity: 0; }
    8.34%, 16.66% { opacity: 1; }
    16.67%, 100% { opacity: 0; }
}

@keyframes showText3 {
    0%, 16.66% { opacity: 0; }
    16.67%, 25% { opacity: 1; }
    25.01%, 100% { opacity: 0; }
}

@keyframes showText4 {
    0%, 25% { opacity: 0; }
    25.01%, 33.33% { opacity: 1; }
    33.34%, 100% { opacity: 0; }
}

@keyframes showText5 {
    0%, 33.33% { opacity: 0; }
    33.34%, 41.66% { opacity: 1; }
    41.67%, 100% { opacity: 0; }
}

@keyframes showText6 {
    0%, 41.66% { opacity: 0; }
    41.67%, 50% { opacity: 1; }
    50.01%, 100% { opacity: 0; }
}

@keyframes showText7 {
    0%, 50% { opacity: 0; }
    50.01%, 58.33% { opacity: 1; }
    58.34%, 100% { opacity: 0; }
}

@keyframes showText8 {
    0%, 58.33% { opacity: 0; }
    58.34%, 66.66% { opacity: 1; }
    66.67%, 100% { opacity: 0; }
}

@keyframes showText9 {
    0%, 66.66% { opacity: 0; }
    66.67%, 75% { opacity: 1; }
    75.01%, 100% { opacity: 0; }
}

@keyframes showText10 {
    0%, 75% { opacity: 0; }
    75.01%, 83.33% { opacity: 1; }
    83.34%, 100% { opacity: 0; }
}

@keyframes showText11 {
    0%, 83.33% { opacity: 0; }
    83.34%, 91.66% { opacity: 1; }
    91.67%, 100% { opacity: 0; }
}

@keyframes showText12 {
    0%, 91.66% { opacity: 0; }
    91.67%, 100% { opacity: 1; }
}

/* Navbar Styles */
.navbar {
    position: sticky;
    top: 40px; /* .top-banner yüksekliği kadar */
    z-index: 1200;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
    gap: 20px;
}

.nav-brand {
    flex-shrink: 0;
}

.nav-brand h2 {
    color: #1e3c72;
    margin: 0;
    font-size: 22px;
}

.nav-brand p {
    color: black;
    margin: 0;
    font-size: 13px;
}

.nav-brand a,
.nav-brand a:hover,
.nav-brand a:visited,
.nav-brand a:active,
.nav-brand a:focus {
    text-decoration: none !important;
    color: inherit !important;
    border: none !important;
    outline: none !important;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 50px;
    flex-wrap: nowrap;
    flex: 1;
    justify-content: flex-end;
}

.nav-menu li {
    position: relative;
}

.nav-menu .dropdown {
    position: relative;
}

.nav-menu .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.nav-menu .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid black;
}

.nav-menu .dropdown-menu li {
    margin: 0;
    list-style: none;
}

.nav-menu .dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

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

.nav-menu .dropdown-menu a:hover {
    background: #f8f9fa;
    color: #1e3c72;
    padding-left: 25px;
}

.nav-menu .dropdown > a::after {
    content: '▼';
    margin-left: 5px;
    font-size: 10px;
    transition: transform 0.3s ease;
}

.nav-menu .dropdown:hover > a::after {
    transform: rotate(180deg);
}

.nav-menu a {
    color: black;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
    padding: 8px 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    min-width: fit-content;
}

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

/* Responsive Design for Header */
@media (max-width: 768px) {
    .banner-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .phone-number {
        order: 1;
        margin-bottom: 5px;
    }
    
    .marquee {
        order: 2;
        margin-left: 0;
        height: 30px;
    }
    
    .marquee span {
        font-size: 12px;
    }
    
    .navbar {
        top: 40px;
    }
    
    .navbar .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-brand h2 {
        font-size: 20px;
    }
    
    .nav-brand p {
        font-size: 12px;
        color: white;
    }
    
    .nav-toggle {
        display: flex !important;
    }
    .nav-menu {
        display: flex !important;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 20px;
        padding: 0 10px;
        flex-wrap: wrap;
    }
    .nav-menu li {
        margin-left: 8px;
        margin-right: 0;
    }
    .nav-menu a {
        font-size: 14px;
        padding: 8px 10px;
        display: flex;
        align-items: center;
        gap: 4px;
        color: black;
    }
    .nav-menu .dropdown-menu {
        position: static !important;
        background: #f8f9fa;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        min-width: 120px;
        width: auto;
        opacity: 1;
        visibility: visible;
        transform: none;
        z-index: 100;
        margin: 0;
    }
    .nav-menu .dropdown-menu li {
        margin: 0;
    }
    .nav-menu .dropdown-menu a {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 8px 12px;
        font-size: 13px;
        border-bottom: 1px solid #eee;
        background: #f8f9fa;
        color: #333;
    }
    .nav-menu .dropdown-menu a:last-child {
        border-bottom: none;
    }
    .nav-menu .dropdown:hover .dropdown-menu {
        display: block !important;
    }
    .nav-menu .dropdown-menu {
        display: none;
    }
    .nav-menu .dropdown:hover .dropdown-menu {
        display: block !important;
    }
}

@media (max-width: 480px) {
    .banner-content {
        padding: 0 15px;
    }
    
    .phone-number {
        padding: 4px 8px;
        font-size: 12px;
    }
    
    .phone-link {
        font-size: 12px;
    }
    
    .phone-text {
        font-size: 10px;
    }
    
    .marquee span {
        font-size: 11px;
    }
    
    .navbar {
        position: sticky !important;
        top: 0 !important;
        z-index: 1200 !important;
    }
    
    .nav-brand h2 {
        font-size: 18px;
    }
    
    .nav-brand p {
        font-size: 11px;
        color: black;
    }
    
    .nav-menu {
        gap: 0;
    }
    
    .nav-menu a {
        font-size: 14px;
        color: black;
    }
}

/* Mobile Dropdown Menu */
@media (max-width: 768px) {
    .nav-menu .dropdown-menu {
        position: static;
        background: #f8f9fa;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        border-left: 3px solid #1e3c72;
        margin-left: 20px;
    }
    
    .nav-menu .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .nav-menu .dropdown-menu::before {
        display: none;
    }
    
    .nav-menu .dropdown-menu a {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 10px 15px;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .nav-menu .dropdown-menu a:hover {
        background: #e9ecef;
        padding-left: 20px;
    }
    
    .nav-menu .dropdown > a::after {
        float: right;
        margin-top: 5px;
    }
} 

/* ===== KAPSAMLI HEADER RESPONSIVE KURALLARI ===== */

/* Tablet ve küçük ekranlar için genel kurallar */
@media (max-width: 1024px) {
    .banner-content {
        max-width: 100%;
        padding: 0 30px;
    }
    
    .navbar .container {
        max-width: 100%;
        padding: 0 30px;
    }
    
    .nav-menu {
        gap: 20px;
    }
    
    .nav-menu a {
        font-size: 0.95rem;
        color: black;
    }
}

/* Tablet için özel kurallar */
@media (max-width: 768px) {
    /* Top Banner responsive */
    .top-banner {
        padding: 6px 0;
    }
    
    .banner-content {
        padding: 0 15px;
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
    
    .phone-number {
        padding: 4px 10px;
        font-size: 12px;
        order: 1;
    }
    
    .phone-icon {
        font-size: 14px;
    }
    
    .phone-link {
        font-size: 12px;
    }
    
    .phone-text {
        font-size: 10px;
    }
    
    .marquee {
        order: 2;
        margin-left: 0;
        height: 16px;
        width: 100%;
        justify-content: center;
    }
    
    .marquee span {
        font-size: 11px;
        text-align: center;
    }
    
    /* Navbar responsive */
    .navbar {
        padding: 8px 0;
    }
    
    .navbar .container {
        padding: 0 15px;
        flex-direction: column;
        gap: 12px;
    }
    
    .nav-brand {
        text-align: center;
        order: 1;
    }
    
    .nav-brand h2 {
        font-size: 1.3rem;
        margin-bottom: 2px;
    }
    
    .nav-brand p {
        font-size: 0.8rem;
    }
    
    .nav-menu {
        order: 2;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        width: 100%;
    }
    
    .nav-menu li {
        margin-left: 0;
        width: auto;
    }
    
    .nav-menu a {
        padding: 8px 12px;
        font-size: 0.85rem;
        text-align: center;
        border-radius: 6px;
        background: rgba(255, 255, 255, 0.05);
        transition: all 0.3s ease;
        color: black;
    }
    
    .nav-menu a:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #ffd700;
    }
    
    .nav-menu .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.02);
        margin-top: 5px;
        border-radius: 6px;
        padding: 8px;
        min-width: auto;
        width: 100%;
    }
    
    .nav-menu .dropdown-menu::before {
        display: none;
    }
    
    .nav-menu .dropdown-menu li {
        margin-bottom: 5px;
    }
    
    .nav-menu .dropdown-menu a {
        padding: 6px 10px;
        font-size: 0.8rem;
        background: transparent;
    }
    
    .nav-menu .dropdown-menu a:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu .dropdown > a::after {
        font-size: 10px;
        margin-left: 4px;
    }
}

/* Mobil cihazlar için özel kurallar */
@media (max-width: 480px) {
    /* Top Banner responsive */
    .top-banner {
        padding: 4px 0;
    }
    
    .banner-content {
        padding: 0 10px;
        gap: 6px;
    }
    
    .phone-number {
        padding: 3px 8px;
        font-size: 11px;
    }
    
    .phone-icon {
        font-size: 12px;
    }
    
    .phone-link {
        font-size: 11px;
    }
    
    .phone-text {
        font-size: 9px;
    }
    
    .marquee {
        height: 14px;
    }
    
    .marquee span {
        font-size: 10px;
    }
    
    /* Navbar responsive */
    .navbar {
        padding: 6px 0;
    }
    
    .navbar .container {
        padding: 0 10px;
        gap: 10px;
    }
    
    .nav-brand h2 {
        font-size: 1.1rem;
    }
    
    .nav-brand p {
        font-size: 0.7rem;
    }
    
    .nav-menu {
        gap: 6px;
    }
    
    .nav-menu a {
        padding: 6px 10px;
        font-size: 0.8rem;
        color: black;
    }
    
    .nav-menu .dropdown-menu {
        padding: 6px;
    }
    
    .nav-menu .dropdown-menu a {
        padding: 5px 8px;
        font-size: 0.75rem;
    }
    
    .nav-menu .dropdown > a::after {
        font-size: 9px;
        margin-left: 3px;
    }
}

/* Çok küçük ekranlar için özel kurallar */
@media (max-width: 320px) {
    /* Top Banner responsive */
    .banner-content {
        padding: 0 8px;
        gap: 4px;
    }
    
    .phone-number {
        padding: 2px 6px;
        font-size: 10px;
    }
    
    .phone-icon {
        font-size: 11px;
    }
    
    .phone-link {
        font-size: 10px;
    }
    
    .phone-text {
        font-size: 8px;
    }
    
    .marquee {
        height: 12px;
    }
    
    .marquee span {
        font-size: 9px;
    }
    
    /* Navbar responsive */
    .navbar {
        padding: 4px 0;
    }
    
    .navbar .container {
        padding: 0 8px;
        gap: 8px;
    }
    
    .nav-brand h2 {
        font-size: 1rem;
    }
    
    .nav-brand p {
        font-size: 0.6rem;
    }
    
    .nav-menu {
        gap: 4px;
    }
    
    .nav-menu a {
        padding: 5px 8px;
        font-size: 0.7rem;
        color: black;
    }
    
    .nav-menu .dropdown-menu {
        padding: 5px;
    }
    
    .nav-menu .dropdown-menu a {
        padding: 4px 6px;
        font-size: 0.7rem;
    }
    
    .nav-menu .dropdown > a::after {
        font-size: 8px;
        margin-left: 2px;
    }
}

/* Yatay mobil cihazlar için özel kurallar */
@media (max-width: 768px) and (orientation: landscape) {
    .top-banner {
        padding: 3px 0;
    }
    
    .banner-content {
        flex-direction: row;
        gap: 15px;
        align-items: center;
    }
    
    .phone-number {
        order: 1;
        flex-shrink: 0;
    }
    
    .marquee {
        order: 2;
        margin-left: 15px;
        flex: 1;
    }
    
    .navbar {
        padding: 4px 0;
    }
    
    .navbar .container {
        flex-direction: row;
        gap: 10px;
        align-items: center;
    }
    
    .nav-brand {
        order: 1;
        text-align: left;
    }
    
    .nav-menu {
        order: 2;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
        justify-content: flex-end;
    }
    
    .nav-menu a {
        padding: 6px 10px;
        font-size: 0.8rem;
        color: black;
    }
}

/* Touch cihazlar için özel kurallar */
@media (hover: none) and (pointer: coarse) {
    .nav-menu a:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu .dropdown-menu a:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .phone-link:hover {
        color: #ffd700;
    }
}

/* Reduced motion tercihi için özel kurallar */
@media (prefers-reduced-motion: reduce) {
    .phone-number {
        animation: none;
    }
    
    .phone-icon {
        animation: none;
    }
    
    .marquee span {
        animation: none;
        opacity: 1;
    }
    
    .nav-menu a,
    .nav-menu .dropdown-menu a {
        transition: none;
    }
}

/* Dark mode desteği */
@media (prefers-color-scheme: dark) {
    .top-banner {
        background: linear-gradient(90deg, #0d1b2a 0%, #1b263b 100%);
    }
    
    .navbar {
        background: #1a1a1a;
        box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    
    .nav-menu .dropdown-menu {
        background: rgba(0, 0, 0, 0.9);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu a:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu .dropdown-menu a:hover {
        background: rgba(255, 255, 255, 0.1);
    }
}

/* Print için özel kurallar */
@media print {
    .top-banner,
    .navbar {
        display: none !important;
    }
} 