/* Defterdoldur.com - Ana CSS Dosyası */

/* Genel Stiller */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* Navbar Gradient */
.navbar.bg-primary {
    background: linear-gradient(90deg, #003366 0%, #0072c6 50%, #40B3FF 100%) !important;
}

/* Mobil Responsive Stiller */
@media (max-width: 768px) {
    .h3-md {
        font-size: 1.5rem !important;
    }
    
    .h6-md {
        font-size: 1rem !important;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .breadcrumb {
        font-size: 0.8rem;
    }
    
    .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* Scroll Menu Stilleri */
.scroll-menu-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 0.75rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.scroll-menu {
    display: flex;
    overflow-x: auto;
    gap: 0.75rem;
    padding: 0.25rem 0;
    scrollbar-width: thin;
    scrollbar-color: #007bff #f1f1f1;
    max-width: 100%;
}

.scroll-menu::-webkit-scrollbar {
    height: 4px;
}

.scroll-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.scroll-menu::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 2px;
}

.scroll-menu::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

.scroll-menu-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: fit-content;
    font-weight: 500;
    font-size: 0.9rem;
}

.scroll-menu-item:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-1px);
}

.scroll-menu-item.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
    box-shadow: 0 2px 4px rgba(0,123,255,0.2);
}

.scroll-menu-item.active i {
    color: #ffc107 !important;
}

.scroll-menu-item.active .badge {
    background: rgba(255,255,255,0.2) !important;
    color: white;
}

/* Kart Hover Efektleri */
.category-card, .game-card {
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

/* Kategori İkonları */
.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.category-icon i {
    transition: transform 0.3s ease;
}

.category-card:hover .category-icon i {
    transform: scale(1.1);
}

/* Oyun Kartları */
.game-card {
    position: relative;
    overflow: hidden;
}

.game-card::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;
}

.game-card:hover::before {
    left: 100%;
}

/* Badge Stilleri */
.badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
}

/* Buton Stilleri */
.btn {
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

/* Sidebar Stilleri */
.sidebar {
    background: #f8f9fa;
    border-right: 1px solid #dee2e6;
}

.folder-item {
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    margin-bottom: 0.25rem;
}

.folder-item:hover {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1976d2;
    transform: translateX(5px);
    border-color: #2196f3;
}

.folder-item:hover i {
    color: #ffc107 !important;
}

/* Hero Section */
.display-4 {
    font-weight: 700;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* İstatistik Kartları */
.stats-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #dee2e6;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .category-icon {
        font-size: 2rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .sidebar {
        margin-bottom: 1rem;
    }
    
    .scroll-menu-item {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Loading Animasyonu */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* Özel Scroll Bar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* Oyun Container */
.game-container {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.game-container iframe {
    display: block;
    border: none;
}

/* Alert Stilleri */
.alert {
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Form Stilleri */
.form-control {
    border-radius: 0.5rem;
    border: 2px solid #dee2e6;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

/* Navbar Stilleri */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 700;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-collapse {
    flex-grow: 0;
}

/* Mobil Menü Stilleri */
@media (max-width: 767px) {
    .navbar-brand-text {
        font-size: 1.3rem;
    }
    
    .navbar {
        padding: 0.5rem 1rem;
    }
    
    .navbar-nav {
        flex-direction: row !important;
        justify-content: flex-end !important;
        align-items: center;
        gap: 10px;
        width: 100%;
        margin-left: auto !important;
        padding-left: 0 !important;
    }
    
    .navbar-nav .nav-link {
        padding: 0.4rem 0.6rem;
        font-size: 1rem;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .navbar-nav .nav-link i {
        font-size: 1.1rem;
    }
    
    .navbar-nav .nav-link.active {
        background-color: rgba(255, 255, 255, 0.2);
        border-radius: 0.5rem;
    }
    
    .col-3 {
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center;
        padding-left: 0;
        padding-right: 0;
    }
    
    .navbar .container .row {
        align-items: center;
    }
    
    .navbar .container .row .col-3 {
        justify-content: flex-end !important;
    }
}

/* Aktif Menü Stilleri */
.navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.375rem;
    font-weight: 600;
}

.navbar-nav .nav-link.active i {
    color: #ffc107 !important;
}

/* Breadcrumb Stilleri */
.breadcrumb {
    background-color: transparent;
    padding: 0.5rem 0;
    margin-bottom: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #6c757d;
    font-weight: bold;
}

.breadcrumb-item a {
    color: #007bff;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6c757d;
    font-weight: 500;
}

/* Breadcrumb İkonları */
.breadcrumb-item i {
    margin-right: 0.25rem;
}

/* Oyun Oynama Sayfası Breadcrumb Stilleri */
.game-header .breadcrumb {
    font-size: 0.85rem;
    white-space: nowrap;
}

.game-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(0,0,0,0.5);
}

.game-header .breadcrumb-item a {
    color: rgba(0,0,0,0.8);
    transition: color 0.2s ease;
}

.game-header .breadcrumb-item a:hover {
    color: #000000;
    text-decoration: none;
}

.game-header .breadcrumb-item.active {
    color: #000000;
}

/* Mobil Breadcrumb Scroll */
@media (max-width: 768px) {
    .game-header .breadcrumb {
        font-size: 0.8rem;
    }
    
    .game-header .breadcrumb-item {
        flex-shrink: 0;
    }
}

/* Footer Stilleri */
footer {
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

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

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

/* Özel Renkler */
.text-primary {
    color: #007bff !important;
}

.bg-primary {
    background-color: #007bff !important;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

/* Oyun Kartı İstatistikleri */
.game-stats {
    font-size: 0.875rem;
    color: #6c757d;
}

.game-stats i {
    margin-right: 0.25rem;
}

/* Etiket Stilleri */
.tag-badge {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
    display: inline-block;
}

/* Zorluk Seviyesi Badge'leri */
.badge.bg-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%) !important;
    color: #212529 !important;
}

.badge.bg-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
}

.badge.bg-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%) !important;
}

.badge.bg-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%) !important;
} 

/* Sınıf Oyunları Sayfası Stilleri */
.sidebar {
    min-height: calc(100vh - 160px);
    background-color: #f8f9fa !important;
    border-right: 1px solid #dee2e6;
}

.folder-tree {
    max-height: 70vh;
    overflow-y: auto;
}

.folder-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    margin: 2px 0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.folder-item:hover {
    background-color: #e3f2fd;
    border-color: #2196f3;
    color: #1976d2;
}

.folder-item.active {
    background-color: #e3f2fd;
    border-color: #2196f3;
    color: #1976d2;
}

.folder-item i {
    font-size: 1.1em;
}

.game-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

/* Çarpım Tablosu Sayfası Stilleri (moved from multiplication.blade.php) */
.sidebar {
    min-height: calc(100vh - 140px);
    border-right: 1px solid #dee2e6;
}

.folder-tree {
    margin-top: 1rem;
}

.folder-item {
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 0.25rem;
    transition: background-color 0.2s;
}

.folder-item:hover {
    background-color: #f8f9fa;
}

.folder-item i {
    font-size: 1.2rem;
}

/* Oyun Oynama Sayfası Stilleri (moved from play.blade.php) */
.game-container {
    position: relative;
    overflow: hidden;
}

.game-container iframe {
    display: block;
} 