/* ═══════════════════════════════════════════════════════════════════════════ */
/* NAVBAR CUSTOM STYLES                                                        */
/* ═══════════════════════════════════════════════════════════════════════════ */

/* Navbar Logo */
.navbar-logo {
    height: 36px;
    width: auto;
}

/* Clickable nav-link without href */
.nav-link-clickable {
    cursor: pointer;
}

.navbar-brand {
    font-size: 1.1rem;
}

/* ==== Components/Shared/Components/BottomSheet.razor.css ==== */
/* ============================================
   BOTTOM SHEET (ALTTAN AÇILAN MODAL) STİLLERİ
   Tekrar kullanılabilir, koyu tema
   Scoped CSS for BottomSheet.razor
   ============================================ */

/* Arka Plan Overlay */
.bottom-sheet-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9990;
    /* Kapalıyken tamamen gizle */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.bottom-sheet-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Ana Panel - Mobil (Varsayılan) */
.bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 90vh;
    background: linear-gradient(180deg, #1e2433 0%, #151a28 100%);
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -10px 60px rgba(0, 0, 0, 0.6);
    z-index: 9995;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Kapalıyken aşağıda gizle */
    transform: translateY(100%);
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.4s ease;
}

.bottom-sheet.active {
    transform: translateY(0);
    visibility: visible;
}

/* Tutaç (Drag Handle) */
.bottom-sheet-handle {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin: 12px auto 0 auto;
    cursor: pointer;
    transition: background 0.2s;
}

.bottom-sheet-handle:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Header */
.bottom-sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.bottom-sheet-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
}

.bottom-sheet-close-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.bottom-sheet-close-icon:hover {
    background: rgba(255, 255, 255, 0.2);
}

.bottom-sheet-close-icon svg {
    width: 18px;
    height: 18px;
}

/* İçerik Alanı */
.bottom-sheet-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    color: #c0c5d0;
    font-size: 15px;
    line-height: 1.7;
}

.bottom-sheet-content h3,
.bottom-sheet-content h4 {
    color: #fff;
    margin-top: 0;
}

.bottom-sheet-content ul {
    padding-left: 20px;
    margin: 16px 0;
}

.bottom-sheet-content li {
    margin-bottom: 10px;
}

.bottom-sheet-content a {
    color: #6366f1;
    text-decoration: none;
}

.bottom-sheet-content a:hover {
    text-decoration: underline;
}

/* Footer */
.bottom-sheet-footer {
    padding: 16px 24px 24px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.bottom-sheet-close-btn {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.bottom-sheet-close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Altın Sarısı Buton Varyantı */
.bottom-sheet-btn-gold {
    background: transparent;
    border: 1px solid #cfaa56;
    color: #cfaa56;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.bottom-sheet-btn-gold:hover {
    background: #cfaa56;
    color: #0b0f19;
}

/* Primary Buton */
.bottom-sheet-btn-primary {
    background: #6366f1;
    border: none;
    color: #fff;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.bottom-sheet-btn-primary:hover {
    background: #4f46e5;
    transform: translateY(-1px);
}

/* ===== TABLET (768px+) ===== */
@media (min-width: 768px) {
    .bottom-sheet {
        left: 50%;
        right: auto;
        width: 90%;
        max-width: 650px;
        max-height: 85vh;
        transform: translateX(-50%) translateY(100%);
        border-radius: 24px 24px 0 0;
    }

    .bottom-sheet.active {
        transform: translateX(-50%) translateY(0);
    }

    .bottom-sheet-content {
        padding: 24px 32px;
    }

    .bottom-sheet-title {
        font-size: 24px;
    }
}

/* ===== MASAÜSTÜ (1024px+) - GENİŞ GÖRÜNÜM ===== */
@media (min-width: 1024px) {
    .bottom-sheet {
        width: 80%;
        max-width: 900px;
        max-height: 80vh;
    }

    .bottom-sheet-content {
        padding: 32px 56px;
        font-size: 16px;
        line-height: 1.85;
    }

    .bottom-sheet-header {
        padding: 28px 56px 24px 56px;
    }

    .bottom-sheet-title {
        font-size: 26px;
    }

    .bottom-sheet-footer {
        padding: 24px 56px;
    }

    .bottom-sheet-handle {
        width: 50px;
        height: 5px;
        margin: 16px auto 0 auto;
    }
}

/* ===== BÜYÜK EKRANLAR (1280px+) ===== */
@media (min-width: 1280px) {
    .bottom-sheet {
        width: 75%;
        max-width: 1000px;
    }

    .bottom-sheet-content {
        padding: 36px 64px;
    }

    .bottom-sheet-header {
        padding: 32px 64px 24px 64px;
    }

    .bottom-sheet-title {
        font-size: 28px;
    }

    .bottom-sheet-footer {
        padding: 28px 64px;
    }
}

/* ===== ÇOK BÜYÜK EKRANLAR (1600px+) ===== */
@media (min-width: 1600px) {
    .bottom-sheet {
        width: 65%;
        max-width: 1100px;
    }
}

/* ==== Components/Shared/Components/AiWidget.razor.css ==== */
/* ============================================
   AI ASISTAN WIDGET STİLLERİ
   K12 Bilişim - WhatsApp/ChatGPT Tarzı Modern Chat
   Scoped CSS for AiWidget.razor
   ============================================ */

/* Ana Container - Sağ alt köşede sabit (Yukarı Çık butonunun solunda) */
.ai-widget-container {
    position: fixed;
    bottom: 24px;
    right: 90px;
    z-index: 9999;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ===== ROBOT BUTON ===== */
.ai-robot-btn {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    transition: all 0.3s ease;
    z-index: 10;
    animation: breathe 2.5s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 6px 30px rgba(99, 102, 241, 0.6);
    }
}

.ai-robot-btn:hover {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    animation: none;
    transform: scale(1.1);
    box-shadow: 0 8px 35px rgba(99, 102, 241, 0.5);
}

.ai-robot-btn:active {
    transform: scale(0.95);
}

.ai-robot-btn.ai-robot-btn-active {
    background-color: #dc3545;
    animation: none;
    box-shadow: 0 4px 20px rgba(220, 53, 69, 0.4);
}

.ai-robot-btn.ai-robot-btn-active:hover {
    background-color: #c82333;
    box-shadow: 0 6px 30px rgba(220, 53, 69, 0.5);
}

.ai-robot-face {
    width: 32px;
    height: 32px;
    z-index: 2;
}

.ai-robot-face svg {
    width: 100%;
    height: 100%;
}

/* ===== NABIZ HALKALARI ===== */
.ai-pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #6366f1;
    opacity: 0;
    z-index: 1;
}

.ai-pulse-ring-1 { animation: pulseRing 2.5s ease-out infinite; }
.ai-pulse-ring-2 { animation: pulseRing 2.5s ease-out infinite 0.6s; }
.ai-pulse-ring-3 { animation: pulseRing 2.5s ease-out infinite 1.2s; }

@keyframes pulseRing {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(2.2); opacity: 0; }
}

.ai-robot-btn-active .ai-pulse-ring {
    display: none;
}

/* ===== SOHBET PENCERESİ ===== */
.ai-chat-window {
    position: absolute;
    bottom: 80px;
    right: -60px;
    width: 380px;
    height: 520px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: bottom right;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== HEADER - WhatsApp Tarzı ===== */
.ai-chat-header {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.ai-chat-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-header-robot {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.ai-header-robot svg {
    width: 100%;
    height: 100%;
}

.ai-header-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ai-header-name {
    font-weight: 600;
    font-size: 15px;
}

.ai-header-status {
    font-size: 12px;
    opacity: 0.9;
}

.ai-header-status .typing-status {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.5; }
}

.ai-close-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.ai-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.ai-close-btn svg {
    width: 18px;
    height: 18px;
}

/* ===== BODY - Mesaj Alanı ===== */
.ai-chat-body {
    flex: 1;
    padding: 16px;
    background: #e5ddd5;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4ccc4' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ===== MESAJ BALONLARI - WhatsApp Tarzı ===== */
.ai-message {
    display: flex;
    gap: 8px;
    max-width: 85%;
    animation: messageIn 0.3s ease-out;
}

@keyframes messageIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.ai-message-bot {
    align-self: flex-start;
}

.ai-message-user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.ai-message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #6366f1;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    align-self: flex-end;
}

.ai-message-avatar svg {
    width: 18px;
    height: 18px;
}

.ai-message-user .ai-message-avatar {
    display: none;
}

/* Mesaj Balonu */
.ai-message-bubble {
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.ai-message-bubble p {
    margin: 0;
}

/* Bot Mesajı - Sol, Gri */
.ai-message-bot .ai-message-bubble {
    background: white;
    color: #1a1a1a;
    border-bottom-left-radius: 4px;
}

/* Kullanıcı Mesajı - Sağ, Mor */
.ai-message-user .ai-message-bubble {
    background: #6366f1;
    color: white;
    border-bottom-right-radius: 4px;
}

/* Mesaj Zamanı */
.ai-message-time {
    display: block;
    font-size: 11px;
    margin-top: 4px;
    opacity: 0.7;
    text-align: right;
}

.ai-message-user .ai-message-time {
    color: rgba(255, 255, 255, 0.8);
}

/* ===== YAZIYOR ANİMASYONU ===== */
.ai-typing-bubble {
    padding: 12px 18px;
}

.typing-dots {
    display: flex;
    gap: 4px;
    align-items: center;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background: #90949c;
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }
.typing-dots span:nth-child(3) { animation-delay: 0s; }

@keyframes typingBounce {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===== FOOTER - Input Alanı ===== */
.ai-chat-footer {
    padding: 12px 16px;
    background: #f0f0f0;
    border-top: 1px solid #ddd;
    flex-shrink: 0;
}

.ai-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

.ai-input {
    flex: 1;
    padding: 12px 18px;
    border: 1px solid #ddd;
    border-radius: 24px;
    font-size: 15px;
    outline: none;
    background: #fff;
    color: #333;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s, border-color 0.2s;
}

.ai-input:focus {
    border-color: #6366f1;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

.ai-input::placeholder {
    color: #999;
}

.ai-input:disabled {
    background: #f5f5f5;
    color: #666;
    cursor: not-allowed;
}

.ai-send-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: #6366f1;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.ai-send-btn:hover:not(:disabled) {
    background: #4f46e5;
    transform: scale(1.08);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.ai-send-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.ai-send-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.ai-send-btn svg {
    width: 22px;
    height: 22px;
    margin-left: 2px;
}

/* ===== MOBİL UYUMLULUK ===== */
@media (max-width: 480px) {
    .ai-widget-container {
        bottom: 16px;
        right: 80px;
    }

    .ai-chat-window {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
        max-height: none;
    }

    .ai-robot-btn {
        width: 56px;
        height: 56px;
    }

    .ai-robot-face {
        width: 28px;
        height: 28px;
    }
}

/* ==== Components/Features/Home/Components/ServicesSlider.razor.css ==== */
/* ===== SERVICES SLIDER STİLLERİ =====
   Scoped CSS for ServicesSlider.razor
   =================================== */

.services-slider-content {
    transition: opacity 0.3s ease;
}

.slide-description {
    min-height: 80px;
    line-height: 1.7;
}

.slider-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(99, 102, 241, 0.3);
    background: transparent;
    color: #6366f1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.slider-nav-btn:hover {
    background: #6366f1;
    color: white;
    border-color: #6366f1;
}

.services-image-container {
    overflow: hidden;
    border-radius: 12px;
}

.slide-image {
    transition: transform 0.3s ease;
}

.services-image-container:hover .slide-image {
    transform: scale(1.02);
}

/* ==== Components/Features/Home/Components/ForumSlider.razor.css ==== */
/* ===== FORUM SLIDER STİLLERİ =====
   Scoped CSS for ForumSlider.razor
   ================================= */

.forum-slider-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.forum-slider-track {
    display: flex;
    gap: 24px;
    flex: 1;
    overflow: hidden;
    padding: 8px 0;
}

/* Forum Slider - Mobilde sadece aktif kart görünür */
.forum-card {
    flex: 0 0 100%;
    min-width: 0;
    display: none;
}

.forum-card-visible {
    display: block;
}

/* Forum kart logo alanı */
.forum-card-logo {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    overflow: hidden;
}

.forum-card-logo i {
    font-size: 28px;
    color: #fff;
}

.forum-logo-img {
    width: 60%;
    height: 60%;
    object-fit: contain;
}

/* Navigasyon Butonları */
.forum-nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(99, 102, 241, 0.4);
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.forum-nav-btn:hover {
    background: #6366f1;
    color: #fff;
    border-color: #6366f1;
    transform: scale(1.1);
}

.forum-nav-btn i {
    font-size: 24px;
}

/* Placeholder - ok olmadığında boşluk korumak için */
.forum-nav-placeholder {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

/* Konum göstergesi */
.forum-position-indicator {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

/* ===== MASAÜSTÜ (1024px+) - Tüm kartlar görünür, oklar gizli ===== */
@media (min-width: 1024px) {
    .forum-card {
        flex: 1;
        display: block !important;
    }

    .forum-card-hidden {
        display: block !important;
    }

    .forum-nav-btn,
    .forum-nav-placeholder {
        display: none !important;
    }

    .forum-position-indicator {
        display: none !important;
    }

    .forum-slider-wrapper {
        gap: 0;
    }

    .forum-slider-track {
        gap: 20px;
    }
}

/* ===== MOBİL (<768px) ===== */
@media (max-width: 767px) {
    .forum-slider-track {
        gap: 16px;
    }

    .forum-card-inner {
        padding: 24px 20px;
        min-height: 260px;
    }

    .forum-card-logo {
        width: 64px;
        height: 64px;
    }

    .forum-card-logo i {
        font-size: 26px;
    }

    .forum-logo-img {
        width: 55%;
        height: 55%;
    }

    .forum-card-title {
        font-size: 18px;
    }

    .forum-nav-btn,
    .forum-nav-placeholder {
        width: 44px;
        height: 44px;
    }

    .forum-nav-btn i {
        font-size: 22px;
    }
}

