/* Akıllı Cihaz Test - Ana Stil Dosyası */

/* CSS Yükleme Testi */
html {
    --css-loaded: true;
}

/* Header Color Fix - Override utilities.css .text-white */
.page-header h1.text-primary {
    color: #0d6efd !important;
}

.card-header h5 {
    color: #000 !important;
}

.card-header h5.mb-0 {
    color: #000 !important;
}

/* Reset ve Genel Stiller */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    line-height: 1.6 !important;
    color: #333 !important;
    margin: 0 !important;
    padding: 0 !important;
    background-color: #f8f9fa !important;
}

/* Ana Layout */
.main-content {
    margin-top: 80px !important;
    min-height: calc(100vh - 160px) !important;
    padding: 0 !important;
}

/* Navbar Stilleri */
.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    margin: 0 2px;
    transition: all 0.2s ease;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.navbar-nav .nav-link.active {
    background-color: #0d6efd;
    color: white !important;
}

/* Dropdown Menu Stilleri */
.dropdown-menu {
    border-radius: 8px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.dropdown-item.active {
    background-color: #0d6efd;
    color: white;
}

.dropdown-item i {
    width: 20px;
    text-align: center;
}

/* Test Kartları */
.test-card {
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
}

.test-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #0d6efd;
}

.test-icon {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Buton Stilleri */
.btn {
    font-weight: 500;
    border-radius: 8px;
    padding: 0.5rem 1.5rem;
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Kart Stilleri */
.card {
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    border-radius: 12px 12px 0 0 !important;
    padding: 1rem 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* Footer */
.footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    margin-top: auto;
}

/* Test Sayfası Özel Stilleri */
.fullscreen-test {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    color: white;
}

/* Container ve Spacing İyileştirmeleri */
.page-container {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    margin-bottom: 1rem;
}

.page-header .lead {
    margin-bottom: 0.5rem;
}

/* Test Sayfaları İçin Özel Layout */
.test-page-layout {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 15px !important;
}

/* Test sayfalarında row düzeltmeleri */
.test-page-layout .row {
    margin-left: -15px !important;
    margin-right: -15px !important;
}

.test-page-layout .row > * {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* Container ve Spacing İyileştirmeleri - Daha yüksek specificity */
.test-page-layout.page-container {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

.test-page-layout .page-header {
    margin-bottom: 2rem !important;
    text-align: center !important;
}

.test-page-layout .page-header h1 {
    margin-bottom: 1rem !important;
}

.test-page-layout .page-header .lead {
    margin-bottom: 0.5rem !important;
}

/* Card İyileştirmeleri - Bootstrap override */
.test-page-layout .card {
    border-radius: 12px !important;
    border: 1px solid #e9ecef !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    transition: all 0.3s ease !important;
    margin-bottom: 1.5rem !important;
}

.test-page-layout .card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-2px) !important;
}

.test-page-layout .card-header {
    background-color: #f8f9fa !important;
    border-bottom: 1px solid #e9ecef !important;
    border-radius: 12px 12px 0 0 !important;
    padding: 1.25rem 1.5rem !important;
    font-weight: 600 !important;
}

.test-page-layout .card-body {
    padding: 1.5rem !important;
}

/* Grid İyileştirmeleri */
.row {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
}

.row > * {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

/* CSS Debug - Yükleme Göstergesi */
.css-debug::before {
    content: "CSS Yüklendi ✓";
    position: fixed;
    top: 10px;
    right: 10px;
    background: #28a745;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 10000;
    font-family: monospace;
}

/* Container ve Layout */
.page-container {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

.page-header {
    margin-bottom: 2rem !important;
    text-align: center !important;
}

.page-header h1 {
    margin-bottom: 1rem !important;
    color: #212529 !important;
}

.page-header .lead {
    margin-bottom: 0.5rem !important;
    color: #6c757d !important;
}

/* Test Sayfaları Layout */
.test-page-layout {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 15px !important;
}

.test-page-layout .row {
    margin-left: -15px !important;
    margin-right: -15px !important;
    margin-bottom: 1.5rem !important;
}

.test-page-layout .row > * {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .main-content {
        margin-top: 70px !important;
    }
    
    .test-page-layout.page-container {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    .test-page-layout .page-header {
        margin-bottom: 1.5rem !important;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    /* Mobil menü düzenlemeleri */
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }
    
    .navbar-nav .nav-item {
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }
    
    .navbar-nav .nav-item:last-child {
        border-bottom: none;
    }
    
    .test-icon {
        height: 60px;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .test-page-layout .card-body {
        padding: 1.25rem !important;
    }
    
    .test-page-layout .card-header {
        padding: 1rem 1.25rem !important;
    }
    
    .test-page-layout {
        padding: 0 10px !important;
    }
}

@media (max-width: 576px) {
    .main-content {
        margin-top: 65px;
    }
    
    .page-container {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }
    
    .page-header {
        margin-bottom: 1rem;
    }
    
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .card-header {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .display-4 {
        font-size: 1.75rem;
    }
    
    .display-5 {
        font-size: 1.5rem;
    }
    
    .test-page-layout {
        padding: 0 5px;
    }
    
    .row {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }
    
    .row > * {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* Animasyonlar */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Yükleme Animasyonu */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    font-size: 1.1rem;
    color: #6c757d;
}

.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #6c757d;
    border-top: 2px solid transparent;
    border-radius: 50%;
    margin-left: 10px;
    animation: spin 1s linear infinite;
}

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

/* Özel Bileşenler */
.alert {
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #ced4da;
    padding: 0.5rem 0.75rem;
}

.form-control:focus, .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Test Özel Stilleri */
.test-area {
    min-height: 300px;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    transition: all 0.2s ease;
}

.test-area:hover {
    border-color: #0d6efd;
    background: #f0f8ff;
}

/* Erişilebilirlik */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Yazdırma Stilleri */
@media print {
    .navbar,
    .footer,
    .btn,
    .alert {
        display: none !important;
    }
    
    .main-content {
        margin-top: 0;
    }
    
    .card {
        border: 1px solid #000;
        box-shadow: none;
    }
}

/* Yüksek Kontrast Modu */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid #000;
    }
    
    .btn {
        border: 2px solid;
    }
    
    .test-card:hover {
        border-color: #000;
    }
}

/* Hareket Azaltma */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .test-card:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
}
