/* ============================================================================
   COMMON STYLES - Ortak Stiller
   Tüm sayfalarda kullanılan temel stiller, reset kuralları ve yardımcı sınıflar
   ============================================================================ */

/* Reset ve temel stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Touch-friendly özellikler */
button, .nav-link, .tab-btn, .close {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Container - Ortak konteyner */
.container {
    max-width: 3600px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

/* Header ve Navigation - Ortak navigasyon */
.navbar {
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo h2 {
    color: white;
    margin: 0;
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    position: relative;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    cursor: pointer;
}

.nav-logo h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #FFD700, #FFA500);
    transition: width 0.3s ease;
}

.nav-logo h2:hover {
    color: #FFD700;
    transform: translateY(-1px);
    text-shadow: 0 3px 8px rgba(255,215,0,0.3);
}

.nav-logo h2:hover::after {
    width: 100%;
}

@keyframes logoGradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 10px 15px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    color: #ffd700;
    background-color: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    background: none;
    border: none;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    transition: right 0.3s ease;
    z-index: 1001;
    box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    padding-top: 80px;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu .nav-menu {
    flex-direction: column;
    gap: 0;
    text-align: left;
    width: 100%;
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
}

.mobile-menu .nav-item {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    list-style: none;
    margin: 0;
    padding: 0;
    display: block;
}

.mobile-menu .nav-link {
    font-size: 1.2rem;
    padding: 20px 30px;
    display: block;
    width: 100%;
    border-radius: 0;
    transition: all 0.3s ease;
    color: #333;
    text-decoration: none;
    font-weight: 600;
}

.mobile-menu .nav-link:hover {
    background: rgba(255,255,255,0.3);
    transform: none;
    padding-left: 40px;
    color: #222;
}

/* Mobile menu overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 480px) {
    .mobile-menu {
        width: 280px;
        right: -280px;
    }
}

/* Responsive Design - Navigation */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 15px;
    }
    
    .nav-logo h2 {
        font-size: 1.5rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
}

@media (max-width: 480px) {
    .nav-container {
        height: 60px;
        padding: 0 10px;
    }
    
    .nav-logo h2 {
        font-size: 1.3rem;
    }
    
    .hamburger span {
        width: 20px;
        height: 2px;
    }
}

/* Ortak Buton Stilleri */
.cta-button {
    padding: 18px 35px;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    min-width: 200px;
    text-align: center;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: buttonPulse 2s ease-in-out infinite;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button.primary {
    background: linear-gradient(135deg, #FFD700, #FF8C00, #FF6B35, #FFD700);
    background-size: 300% 300%;
    color: white;
    animation: gradientMove 3s ease infinite, buttonPulse 2s ease-in-out infinite;
}

.cta-button.secondary {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 2px solid rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.cta-button.secondary:hover {
    background: rgba(255,255,255,0.95);
    color: #FF6B35;
    border-color: rgba(255,255,255,0.95);
    box-shadow: 0 15px 35px rgba(255,255,255,0.2);
}

@keyframes buttonPulse {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(0,0,0,0.15), 0 0 0 0 rgba(255,215,0,0.4);
    }
    50% {
        box-shadow: 0 8px 25px rgba(0,0,0,0.15), 0 0 0 10px rgba(255,215,0,0);
    }
}

@keyframes gradientMove {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Modal Stilleri - Ortak modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
    overflow: hidden;
    position: relative;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
    z-index: 1;
    background: none;
    border: none;
    line-height: 1;
}

.close:hover,
.close:focus {
    color: #ff8c00;
}

/* Loading Spinner - Ortak yükleme animasyonu */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #ff8c00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Utility Classes - Yardımcı sınıflar */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

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

.d-none {
    display: none;
}

.d-block {
    display: block;
}

.d-flex {
    display: flex;
}

.justify-center {
    justify-content: center;
}

.align-center {
    align-items: center;
}

.gap-1 {
    gap: 1rem;
}

.gap-2 {
    gap: 2rem;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.p-1 {
    padding: 1rem;
}

.p-2 {
    padding: 2rem;
}

/* Focus styles for better accessibility */
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid #ff8c00;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .profile-image {
        border: 2px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .loading-spinner {
        animation: none;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Policy Modals refine */
#privacyModal .modal-content,
#kvkkModal .modal-content,
#termsModal .modal-content,
#cookiesModal .modal-content {
  max-width: 760px;
}

#privacyModal h2,
#kvkkModal h2,
#termsModal h2,
#cookiesModal h2 {
  color: #ff6b35;
  margin-bottom: 12px;
}

#privacyModal p,
#kvkkModal p,
#termsModal p,
#cookiesModal p {
  color: #333;
  line-height: 1.5;
}

/* Register modal overflow fix */
#registerModal .modal-content {
  max-height: 85vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-height: 700px) {
  #registerModal .modal-content {
    max-height: 90vh;
    margin: 2% auto;
  }
}