/* Clean Modern Design - Simple & Professional */

/* Beautiful Body Background */
body {
    background: 
        linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 50%, #cbd5e1 100%);
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(147, 51, 234, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Tailwind CSS CDN kullanılacak, bu dosya özel stiller için */

/* Özel animasyonlar ve geçişler */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

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

.slide-down {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Clean Game Container - No Card Effect */
.game-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.game-container iframe {
    width: 100%;
    height: 650px;
    border: none;
    border-radius: 12px;
    background: #000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* SSS accordion stilleri */
.sss-item {
    transition: all 0.3s ease;
}

.sss-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.sss-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.sss-answer.active {
    max-height: 200px;
}

/* Admin panel özel stilleri */
.admin-sidebar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Desktop admin sidebar */
@media (min-width: 769px) {
    .admin-sidebar {
        position: relative !important;
        left: 0 !important;
        width: 250px !important;
        height: 100vh !important;
    }
}

.admin-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.admin-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Form stilleri */
.form-input {
    transition: all 0.3s ease;
    border: 2px solid #e2e8f0;
}

.form-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Buton stilleri */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    transition: all 0.3s ease;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 101, 101, 0.3);
}

/* Responsive tasarım iyileştirmeleri */
@media (max-width: 768px) {
    .game-container {
        margin: 0 16px;
    }
    
    .game-container iframe {
        height: 450px;
    }
    
    .game-slider-container {
        padding: 0.3rem 0.5rem; /* Hover için padding */
        margin: 0 16px;
        min-height: 90px; /* Hover için tablet yükseklik */
    }
    
    .game-image {
        padding-bottom: 70%; /* Tablet'te MİNİ KARE */
    }
}

@media (max-width: 480px) {
    .game-container {
        margin: 0 12px;
    }
    
    .game-container iframe {
        height: 350px;
    }
    
    .game-slider-container {
        padding: 0.2rem 0.25rem; /* Hover için mobile padding */
        margin: 0 12px;
        min-height: 80px; /* Hover için mobile yükseklik */
    }
    
    .game-image {
        padding-bottom: 70%; /* Mobile'da MİNİ KARE */
    }
    
    .admin-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        z-index: 50;
        transition: left 0.3s ease;
    }
    
    .admin-sidebar.active {
        left: 0;
    }
}

/* Loading spinner */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

/* Content Section Styles - Rich Text Editor Output */
.content-section {
    line-height: 1.7 !important;
    font-size: 16px !important;
    color: #374151 !important;
}

/* Quill.js specific classes */
.content-section .ql-editor {
    padding: 0 !important;
    border: none !important;
    font-size: inherit;
}

/* Headers */
.content-section h1, .content-section .ql-size-huge {
    font-size: 2.25rem !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
    color: #1f2937 !important;
    line-height: 1.2 !important;
}

.content-section h2, .content-section .ql-size-large {
    font-size: 1.875rem !important;
    font-weight: 600 !important;
    margin-bottom: 0.75rem !important;
    color: #374151 !important;
    line-height: 1.3 !important;
}

.content-section h3, .content-section .ql-size-small {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    margin-bottom: 0.5rem !important;
    color: #4b5563 !important;
    line-height: 1.4 !important;
}

/* Paragraphs */
.content-section p {
    margin-bottom: 1rem !important;
    color: #6b7280 !important;
    font-size: 16px !important;
}

/* Lists */
.content-section ul, .content-section ol {
    margin-bottom: 1rem !important;
    padding-left: 1.5rem !important;
    margin-top: 1rem !important;
}

.content-section ul {
    list-style-type: disc !important;
    list-style-position: outside !important;
}

.content-section ol {
    list-style-type: decimal !important;
    list-style-position: outside !important;
}

.content-section li {
    margin-bottom: 0.5rem !important;
    color: #6b7280 !important;
    display: list-item !important;
    list-style-type: inherit !important;
    margin-left: 0 !important;
    padding-left: 0.25rem !important;
}

.content-section ul li {
    list-style-type: disc !important;
}

.content-section ol li {
    list-style-type: decimal !important;
}

/* Links */
.content-section a {
    color: #3b82f6 !important;
    text-decoration: underline !important;
}

.content-section a:hover {
    color: #1d4ed8 !important;
}

/* Text formatting */
.content-section strong, .content-section .ql-font-bold, .content-section b {
    font-weight: 700 !important;
    color: #374151 !important;
}

.content-section em, .content-section .ql-font-italic, .content-section i {
    font-style: italic !important;
}

.content-section u {
    text-decoration: underline !important;
}

/* Colors */
.content-section .ql-color-red {
    color: #ef4444 !important;
}

.content-section .ql-color-orange {
    color: #f97316 !important;
}

.content-section .ql-color-yellow {
    color: #eab308 !important;
}

.content-section .ql-color-green {
    color: #22c55e !important;
}

.content-section .ql-color-blue {
    color: #3b82f6 !important;
}

.content-section .ql-color-purple {
    color: #a855f7 !important;
}

/* Background colors */
.content-section .ql-bg-red {
    background-color: #fef2f2 !important;
    padding: 2px 4px !important;
    border-radius: 3px !important;
}

.content-section .ql-bg-orange {
    background-color: #fff7ed !important;
    padding: 2px 4px !important;
    border-radius: 3px !important;
}

.content-section .ql-bg-yellow {
    background-color: #fefce8 !important;
    padding: 2px 4px !important;
    border-radius: 3px !important;
}

.content-section .ql-bg-green {
    background-color: #f0fdf4 !important;
    padding: 2px 4px !important;
    border-radius: 3px !important;
}

.content-section .ql-bg-blue {
    background-color: #eff6ff !important;
    padding: 2px 4px !important;
    border-radius: 3px !important;
}

.content-section .ql-bg-purple {
    background-color: #faf5ff !important;
    padding: 2px 4px !important;
    border-radius: 3px !important;
}

/* Alignment */
.content-section .ql-align-center {
    text-align: center !important;
}

.content-section .ql-align-right {
    text-align: right !important;
}

.content-section .ql-align-justify {
    text-align: justify !important;
}

/* Blockquotes */
.content-section blockquote {
    border-left: 4px solid #e5e7eb !important;
    padding-left: 1rem !important;
    margin: 1rem 0 !important;
    font-style: italic !important;
    color: #6b7280 !important;
}

/* Custom features grid */
.content-section .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.content-section .feature {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

.content-section .feature h3 {
    margin-bottom: 0.5rem !important;
    font-size: 1.25rem !important;
}

/* Toast bildirimleri */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    padding: 16px 24px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    animation: slideInRight 0.3s ease-out;
}

.toast.success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
}

.toast.error {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* OVERRIDE ALL - Content Section Final Styles */
.content-section * {
    box-sizing: border-box;
}

.content-section ul {
    list-style: disc !important;
    margin-left: 0 !important;
    padding-left: 1.5rem !important;
    margin-bottom: 1rem !important;
    margin-top: 1rem !important;
}

.content-section ol {
    list-style: decimal !important;
    margin-left: 0 !important;
    padding-left: 1.5rem !important;
    margin-bottom: 1rem !important;
    margin-top: 1rem !important;
}

.content-section ul li,
.content-section ol li {
    display: list-item !important;
    margin-bottom: 0.5rem !important;
    color: #6b7280 !important;
    line-height: 1.6 !important;
}

.content-section h2 {
    font-size: 1.875rem !important;
    font-weight: 600 !important;
    color: #374151 !important;
    margin-bottom: 1rem !important;
    margin-top: 1.5rem !important;
    line-height: 1.3 !important;
}

.content-section h3 {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    color: #4b5563 !important;
    margin-bottom: 0.75rem !important;
    margin-top: 1.25rem !important;
    line-height: 1.4 !important;
}

.content-section p {
    margin-bottom: 1rem !important;
    color: #6b7280 !important;
    line-height: 1.7 !important;
    font-size: 16px !important;
}

.content-section strong {
    font-weight: 700 !important;
    color: #374151 !important;
}

/* Game Slider Styles - 5 Mini Games */
.game-slider-container {
    max-width: 1200px; /* Daha dar genişlik */
    margin: 0 auto;
    padding: 0.375rem 0.5rem; /* Hover için biraz padding */
    min-height: 105px; /* Hover için biraz yükseklik */
}

.game-slider {
    position: relative;
}

.game-slider-track {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start; /* Üstten hizala */
    transition: transform 0.5s ease-in-out;
    width: fit-content;
    min-height: 85px; /* Hover için biraz yüksek track */
    padding: 3px 0; /* Hover için minimal padding */
}

.game-slide {
    flex: none;
    width: 50%; /* Mobile: 2 oyun */
    padding: 0 0.5rem; /* Minimal boşluk */
}

@media (min-width: 640px) {
    .game-slide {
        width: 33.333333%; /* Small tablet: 3 oyun */
        padding: 0 0.5rem; /* Minimal boşluk */
    }
}

@media (min-width: 768px) {
    .game-slide {
        width: 25%; /* Tablet: 4 oyun */
        padding: 0 0.5rem; /* Minimal boşluk */
    }
}

@media (min-width: 1024px) {
    .game-slide {
        width: 20%; /* Desktop: 5 oyun */
        padding: 0 0.5rem; /* Minimal boşluk */
    }
}

.game-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
    border: 1px solid rgba(59, 130, 246, 0.1);
    min-width: 80px; /* MİNİ CARD! */
    min-height: 80px; /* MİNİ CARD! */
}

.game-card:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px) scale(1.05);
    border-color: #3b82f6;
}

.game-image {
    position: relative;
    padding-bottom: 70%; /* MİNİ KARE görsel */
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    overflow: hidden;
    border-radius: 6px;
}

.game-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover .game-image img {
    transform: scale(1.05);
}

.slider-nav {
    background: white;
    border-radius: 50%;
    padding: 0.5rem;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
    z-index: 10;
    /* Transition kaldırıldı - statik butonlar */
}

/* Navigation hover efekti kaldırıldı */

/* Navigation active efekti de kaldırıldı */

.slider-dots button {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dots button:hover {
    transform: scale(1.2);
}

/* Line clamp utilities */
.line-clamp-1 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.line-clamp-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* Game slider responsive adjustments */
@media (max-width: 640px) {
    .game-slider-container {
        padding: 0 0.5rem;
    }
    
    .slider-nav {
        padding: 0.5rem;
    }
    
    .slider-nav.slider-prev {
        left: 0.5rem;
    }
    
    .slider-nav.slider-next {
        right: 0.5rem;
    }
}
