/* MEDYAJANS SISTEM - MAIN STYLES */
/* MedyAjans Kuralları: Modular CSS - Max 500 satır */
/* Test değişikliği - YİRMİ ALTINCI TEST - PM2 RESTART COUNTER FIX */

/* Scroll to top butonunu gizle */
.scroll-indicator {
    display: none !important;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    color: #e2e8f0;
    
    /* Header ile çakışmaması için responsive üst boşluk */
    /* Sticky header kullanıyoruz, fazla boşluk gerekmiyor */
    padding-top: 120px; /* Desktop default - azaltıldı */
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0;
}

/* Responsive Body Padding - Ana Kutu Sistemi Uyumlu */
/* Ana kutu sistemi: padding sadece üstte header için, yanlar 0 (container kendi margin'i var) */

/* Desktop XL (1400px+) - Header Boşluk Optimize */
@media (min-width: 1400px) {
    body {
        /* Sticky header için optimize edilmiş */
        padding-top: 130px !important;
        padding-left: 0;
        padding-right: 0;
        padding-bottom: 0;
    }
}

/* Desktop L (1200-1399px) - Header Boşluk Optimize */
@media (min-width: 1200px) and (max-width: 1399px) {
    body {
        /* Sticky header için optimize edilmiş */
        padding-top: 120px !important;
        padding-left: 0;
        padding-right: 0;
        padding-bottom: 0;
    }
}

/* Desktop M (992-1199px) - Header Boşluk Optimize */
@media (min-width: 992px) and (max-width: 1199px) {
    body {
        /* Sticky header için optimize edilmiş */
        padding-top: 110px !important;
        padding-left: 0;
        padding-right: 0;
        padding-bottom: 0;
    }
}

/* Tablet Large (800-991px) - Header Boşluk Optimize */
@media (min-width: 800px) and (max-width: 991px) {
    body {
        /* Sticky header için optimize edilmiş */
        padding-top: 100px !important;
        padding-left: 0;
        padding-right: 0;
        padding-bottom: 0;
    }
}

/* Tablet Medium (750-799px) - Yumuşak Geçiş */
@media (min-width: 750px) and (max-width: 799px) {
    body {
        /* Sticky header için optimize edilmiş */
        padding-top: 95px !important;
        padding-left: 0;
        padding-right: 0;
        padding-bottom: 0;
    }
}

/* Tablet Small (769-749px) - Geçiş Bölgesi Silindi (Yanlış Query) */

/* Mobile L (481-768px) - Header Boşluk Optimize */
@media (min-width: 481px) and (max-width: 768px) {
    body {
        /* Sticky header için optimize edilmiş */
        padding-top: 90px !important;
        padding-left: 0;
        padding-right: 0;
        padding-bottom: 0;
    }
}

/* Mobile S (≤480px) - Header Boşluk Optimize */
@media (max-width: 480px) {
    body {
        /* Sticky header için optimize edilmiş */
        padding-top: 85px !important;
        padding-left: 0;
        padding-right: 0;
        padding-bottom: 0;
    }
}

.container { 
    margin: 20px auto; /* Yatayda ortala, daha fazla boşluk */
    background: #1e1e2f; 
    border-radius: 20px; 
    padding: 30px; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    min-height: calc(100vh - 40px);
    border: 1px solid #334155;
    max-width: 1400px; /* Maksimum genişlik 1400px */
    width: calc(100% - 40px); /* Responsive genişlik */
}

/* Fullwidth Mode - Container ve Header beraber genişler */
.container.fullwidth {
    max-width: calc(100% - 40px) !important; /* Header ile aynı */
    width: calc(100% - 40px) !important;
    margin: 0 auto !important; /* Margin'i sıfırla, sadece merkez */
    margin-top: 20px !important; /* Üst boşluk koru */
    margin-bottom: 20px !important; /* Alt boşluk koru */
}

@media (max-width: 768px) {
    .container.fullwidth {
        max-width: calc(100% - 20px) !important; /* Header mobile ile aynı */
        width: calc(100% - 20px) !important;
        margin: 0 auto !important;
        margin-top: 20px !important;
        margin-bottom: 20px !important;
    }
}

/* Container Responsive Genişlikler */
@media (max-width: 768px) {
    .container {
        margin: 10px auto;
        padding: 20px;
        width: calc(100% - 20px);
        max-width: 100%;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        margin: 15px auto;
        padding: 25px;
        width: calc(100% - 30px);
        max-width: 900px;
    }
}

@media (min-width: 1025px) and (max-width: 1440px) {
    .container {
        margin: 20px auto;
        padding: 30px;
        width: calc(100% - 40px);
        max-width: 1200px;
    }
}

@media (min-width: 1441px) {
    .container {
        margin: 20px auto;
        padding: 30px;
        width: calc(100% - 40px);
        max-width: 1400px;
    }
}

/* Header stilleri system-header.css ve company-header.css dosyalarına taşındı */

/* Header button stilleri system-header.css ve company-header.css dosyalarına taşındı */

.hidden { 
    display: none !important; 
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(52, 152, 219, 0.3);
    border-radius: 50%;
    border-top-color: #3498db;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Smooth transitions */
* {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Session restore loading state - login flash önleme */
#loginSection.session-loading {
    display: none !important;
}
/* LOGO BOYUT OVERRIDE - TÜM LOGOLARI 120PX YAP */
.medyajans-logo img,
.logo-container img, 
.company-logo-container img,
#companyLogo,
.header-top-logo img,
.medyajans-logo {
    max-width: 120px !important;
    max-height: 80px !important;
    width: auto !important;
    height: auto !important;
}

/* TÜM MEDIA QUERY OVERRIDE */
@media (min-width: 1px) {
    .medyajans-logo img,
    .logo-container img,
    .company-logo-container img,
    #companyLogo,
    .header-top-logo img,
    .medyajans-logo {
        max-width: 120px !important;
        max-height: 80px !important;
    }
}


/* LOGO VIEWPORT BOYUT SINIRI */
.medyajans-logo img,
.header-top-logo img {
    max-width: min(120px, 15vw) !important;
    max-height: min(80px, 10vh) !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}


/* RESPONSIVE LOGO BOYUTLARI - OVERRIDE */
/* Mobile: Küçük */
@media (max-width: 768px) {
    .medyajans-logo img,
    .header-top-logo img {
        max-width: 120px !important;
        max-height: 80px !important;
    }
}

/* Desktop: Biraz büyük */
@media (min-width: 769px) {
    .medyajans-logo img,
    .header-top-logo img {
        max-width: 160px !important;
        max-height: 100px !important;
    }
}


/* Header emoji boyutları header CSS'lerine taşındı */

/* Tüm header stilleri system-header.css ve company-header.css dosyalarına taşındı */

/* Logo ve header stilleri header CSS dosyalarına taşındı */

/* Mobile'da kompakt */
@media (max-width: 768px) {
    
    /* Şirket başlığı mobile responsive */
    #companiesSection h3 {
        flex-wrap: wrap !important;
        gap: 8px !important;
        justify-content: center !important;
        text-align: center !important;
        font-size: 1.8rem !important; /* Mobil için font boyutu optimizasyonu */
        line-height: 1.4 !important; /* Line height eklendi */
    }
    
    /* Yeni Şirket butonu mobile */
    #companiesSection h3 button {
        order: 3 !important; /* En alta taşı */
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: 8px !important;
        font-size: 0.8rem !important;
        padding: 6px 12px !important;
        width: auto !important;
    }
    
    /* SaaS platform yazısını gizle mobile'da */
    #companiesSection h3 span:last-child {
        display: none !important;
    }
}

/* Tablet responsive için ek optimizasyon */
@media (min-width: 481px) and (max-width: 768px) {
    #companiesSection h3 {
        font-size: 1.9rem !important; /* Tablet için ideal boyut */
        gap: 10px !important;
    }
}

@media (max-width: 480px) {
    /* Çok küçük ekranlarda şirket başlığı - Daha büyük responsive font */
    #companiesSection h3 {
        font-size: 1.6rem !important; /* 1.1rem → 1.6rem artırıldı */
        gap: 8px !important; /* Gap da artırıldı */
        line-height: 1.3 !important; /* Line height eklendi */
    }
    
    /* Yeni Şirket butonu daha küçük */
    #companiesSection h3 button {
        font-size: 0.75rem !important;
        padding: 5px 10px !important;
        border-radius: 5px !important;
    }
    
    /* Span'ları daha küçük */
    #companiesSection h3 span {
        font-size: 0.6rem !important;
        padding: 3px 6px !important;
    }
}

/* AJAX DATA UPDATE ANIMATIONS */
@keyframes dataUpdatePulse {
    0% { 
        background: rgba(67, 233, 123, 0.1);
        transform: scale(1);
    }
    50% { 
        background: rgba(67, 233, 123, 0.3);
        transform: scale(1.02);
    }
    100% { 
        background: rgba(67, 233, 123, 0.1);
        transform: scale(1);
    }
}

@keyframes dataGlow {
    0% { 
        box-shadow: 0 0 5px rgba(67, 233, 123, 0.3);
    }
    50% { 
        box-shadow: 0 0 15px rgba(67, 233, 123, 0.6);
    }
    100% { 
        box-shadow: 0 0 5px rgba(67, 233, 123, 0.3);
    }
}

.data-updating {
    animation: dataUpdatePulse 0.8s ease-in-out;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.card-updating {
    animation: dataGlow 0.6s ease-in-out;
    transition: all 0.3s ease;
}

/* Sessiz güncelleme için fade efekti */
.data-fade-update {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.data-fade-update.updated {
    opacity: 1;
}

/* Modül durumu animasyonları */
@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Feature card geliştirmeler */
.feature-card {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important;
}
