/* ===================================
   Özgür Tekel - Frontend Styles
   =================================== */

/* Base Styles */
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Material Icons */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Hero Gradient */
.hero-gradient {
    background: linear-gradient(
        to bottom,
        rgba(10, 10, 10, 0.7) 0%,
        rgba(10, 10, 10, 0.3) 50%,
        rgba(10, 10, 10, 0.9) 100%
    );
}

/* Hero Slider Styles */
.hero-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out;
    pointer-events: none;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    cursor: pointer;
}

.slider-dot.active {
    background: #f2b90d;
    border-color: #f2b90d;
    width: 32px;
    border-radius: 6px;
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #f2b90d;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #d4a574;
}

/* Focus Styles */
*:focus {
    outline: 2px solid #f2b90d;
    outline-offset: 2px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Loading State */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f2b90d;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Print Styles */
@media print {
    header,
    footer,
    .no-print {
        display: none !important;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Skip to Content Link */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: #f2b90d;
    color: #000;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100;
}

.skip-to-content:focus {
    top: 0;
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

/* Button Reset */
button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* Link Styles */
a {
    text-decoration: none;
    color: inherit;
}

/* Selection */
::selection {
    background-color: #f2b90d;
    color: #000;
}

::-moz-selection {
    background-color: #f2b90d;
    color: #000;
}

/* Mobile Header & Hero Fixes */
@media (max-width: 768px) {
    /* Fixed Header */
    header {
        position: fixed !important;
        background: rgba(0, 0, 0, 0.95) !important;
        backdrop-filter: blur(20px);
        padding: 0.75rem 1rem !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
        z-index: 100;
    }
    
    header img {
        height: 2rem !important;
        max-width: 120px !important;
    }
    
    /* Hero Section - Compact Mobile View */
    section[role="banner"] {
        min-height: 85vh !important;
        min-height: 85svh !important; /* Safari için */
        height: auto !important;
        padding-top: 3.5rem !important;
        padding-bottom: 1rem !important;
    }
    
    /* Hero Content - Tighter Spacing */
    section[role="banner"] > div:first-child {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    
    section[role="banner"] .container {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    
    section[role="banner"] article {
        gap: 1rem !important;
    }
    
    /* Hero Title Responsive */
    section[role="banner"] h1 {
        font-size: 2.25rem !important;
        line-height: 1.1 !important;
        margin-bottom: 0.5rem !important;
    }
    
    /* Hero Subtitle Badge */
    section[role="banner"] .inline-flex {
        font-size: 0.625rem !important;
        padding: 0.375rem 0.875rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    /* Hero Description */
    section[role="banner"] p {
        font-size: 0.875rem !important;
        line-height: 1.4 !important;
        margin-bottom: 0 !important;
        padding: 0 1rem !important;
    }
    
    /* Hero Buttons Nav */
    section[role="banner"] nav {
        padding-top: 1.5rem !important;
        gap: 0.75rem !important;
    }
    
    /* Hero Buttons */
    section[role="banner"] nav a {
        padding: 0.875rem 1.75rem !important;
        font-size: 0.875rem !important;
    }
    
    /* Slider Controls - Smaller on Mobile */
    section[role="banner"] button[onclick*="Slide"] {
        padding: 0.5rem !important;
        width: 2.5rem;
        height: 2.5rem;
    }
    
    section[role="banner"] button[onclick*="Slide"] .material-symbols-outlined {
        font-size: 1.5rem !important;
    }
    
    /* Slider Dots - Bottom Position */
    section[role="banner"] > div:last-child {
        bottom: 1.5rem !important;
    }
    
    section[role="banner"] .slider-dot {
        width: 8px !important;
        height: 8px !important;
    }
    
    section[role="banner"] .slider-dot.active {
        width: 24px !important;
    }
}

/* Extra Small Devices (iPhone SE, etc.) */
@media (max-width: 375px) {
    section[role="banner"] h1 {
        font-size: 2rem !important;
    }
    
    section[role="banner"] nav a {
        padding: 0.875rem 1.5rem !important;
        font-size: 0.85rem !important;
    }
}

/* Landscape Mode Fix */
@media (max-height: 600px) and (orientation: landscape) {
    section[role="banner"] {
        min-height: auto !important;
        height: auto !important;
        padding-top: 5rem;
        padding-bottom: 3rem;
    }
    
    section[role="banner"] h1 {
        font-size: 2rem !important;
    }
    
    section[role="banner"] nav {
        padding-top: 1rem !important;
    }
}
