/* ===== HEALTH-TECH PREMIUM UI STYLES ===== */
/* Inspired by: Headspace, Calm, Apple Health */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
    background: linear-gradient(180deg, #f8fafc 0%, #e0f2fe 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* ===== CONTAINER ===== */
.premium-container {
    max-width: 100%;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

/* ===== HEADER ===== */
.premium-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e40af 100%);
    color: white;
    padding: 1.5rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.assistant-avatar {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.header-title h1 {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    letter-spacing: -0.02em;
}

.header-subtitle {
    font-size: 0.8125rem;
    opacity: 0.8;
    font-weight: 500;
}

.header-close {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0.5rem;
}

.header-close:hover {
    color: white;
    transform: scale(1.1);
}

/* ===== PROGRESS BAR ===== */
.progress-section {
    padding: 1.25rem 2rem;
    background: white;
    border-bottom: 1px solid #f1f5f9;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.progress-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.progress-count {
    font-size: 0.875rem;
    font-weight: 700;
    color: #1e40af;
}

.progress-bar-container {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #1e40af 100%);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 4px;
}

/* ===== MESSAGES AREA ===== */
.messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    background: #f8fafc;
    min-height: 400px;
    max-height: calc(100vh - 250px);
    /* Viewport yüksekliği - header - progress bar */
    padding-bottom: 300px !important;
    /* Butonların yüksekliği + ekstra güvenlik */
}

/* ===== MESSAGE CARDS (Not bubbles!) ===== */
.message-card {
    margin-bottom: 1.5rem;
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Bot Message Card */
.bot-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.bot-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.125rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.bot-content {
    background: white;
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    border-top-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    max-width: 85%;
    border-left: 3px solid #3b82f6;
}

.bot-text {
    color: #1e293b;
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 500;
}

/* User Message Card */
.user-card {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
}

.user-content {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    border-top-right-radius: 4px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
    max-width: 75%;
    font-weight: 500;
}

/* Thinking Indicator */
.thinking-indicator {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.thinking-content {
    background: white;
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.thinking-dot {
    width: 8px;
    height: 8px;
    background: #94a3b8;
    border-radius: 50%;
    animation: pulse 1.4s ease-in-out infinite;
}

.thinking-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.thinking-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes pulse {

    0%,
    60%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }

    30% {
        transform: scale(1.3);
        opacity: 1;
    }
}

.thinking-text {
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    margin-left: 0.5rem;
}

/* ===== ANSWER OPTIONS (Sticky Footer - Outside scroll) ===== */
.answer-footer {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: white;
    padding: 1rem 1.5rem 1.25rem;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    z-index: 50;
}

.answer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.answer-card {
    background: white;
    border: 2px solid #e2e8f0;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.875rem;
    font-weight: 500;
    color: #1e293b;
    text-align: center;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.answer-card:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.15);
}

.answer-card:active {
    transform: scale(0.98);
}

.answer-card.selected {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35);
}

/* ===== CITY MODAL ===== */
.city-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.city-modal-card {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.city-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.city-modal-subtitle {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.city-search-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: all 0.2s;
}

.city-search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.city-list {
    max-height: 400px;
    overflow-y: auto;
}

.city-item {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 8px;
    margin-bottom: 0.25rem;
}

.city-item:hover {
    background: #f8fafc;
    transform: translateX(4px);
}

/* ===== LOADING OVERLAY ===== */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.loading-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.loading-spinner {
    width: 56px;
    height: 56px;
    border: 4px solid #e2e8f0;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.loading-subtitle {
    color: #64748b;
    font-size: 0.875rem;
}

/* ===== MOBILE OPTIMIZATIONS ===== */
@media (max-width: 768px) {
    .premium-header {
        padding: 1.25rem 1.5rem;
    }

    .messages-container {
        padding: 1.5rem 1rem;
        min-height: 300px;
        max-height: calc(100vh - 200px);
        /* Mobilde daha az header yüksekliği */
        padding-bottom: 320px !important;
        /* Mobilde daha fazla boşluk - butonlar daha büyük */
    }

    .answer-footer {
        padding: 1.25rem 1rem 1.5rem;
    }

    .answer-grid {
        grid-template-columns: 1fr;
        /* Mobilde tek sütun */
    }

    .answer-card {
        text-align: left;
        justify-content: flex-start;
    }

    .bot-content,
    .user-content {
        max-width: 90%;
    }
}

/* Desktop: Ortalanmış, max-width */
@media (min-width: 769px) {
    .messages-container {
        max-width: 800px;
        margin: 0 auto;
        padding: 2rem;
    }

    .answer-footer {
        max-width: 800px;
        margin: 0 auto;
        width: 100%;
    }
}

/* ===== SCROLLBAR STYLING ===== */
.messages-container::-webkit-scrollbar {
    width: 6px;
}

.messages-container::-webkit-scrollbar-track {
    background: transparent;
}

.messages-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.messages-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ===== LISTENING STATE (Bot Status Wrapper) ===== */
/* "Can yazıyor..." ile aynı stil ama yeşil ikon */
.bot-status-wrapper {
    display: none;
    /* Varsayılan olarak gizli */
    opacity: 0;
    margin-bottom: 1.5rem;
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transition: opacity 0.3s ease;
}

.bot-status-wrapper.visible {
    display: flex;
    opacity: 1;
    gap: 1rem;
    align-items: center;
}

.bot-status-wrapper.hidden {
    opacity: 0;
    pointer-events: none;
}

.bot-status-content {
    background: white;
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.bot-status-text {
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
}

/* ===== THOUGHT BUBBLE - Feedback Messages ===== */
.thought-bubble .bot-content {
    background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%) !important;
    border: 1.5px solid #fbbf24 !important;
    border-radius: 16px !important;
    position: relative;
}

.thought-bubble .bot-content::before {
    content: '🤔';
    position: absolute;
    top: -12px;
    left: 12px;
    font-size: 1rem;
    background: white;
    padding: 0 4px;
    border-radius: 50%;
}

.thought-bubble .bot-text {
    font-style: italic !important;
    color: #92400e !important;
}

/* ===== TYPING CURSOR ===== */
.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background-color: #3b82f6;
    margin-left: 2px;
    animation: blink 0.7s infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

/* ===== CONVERSATIONAL TEST SPECIFIC STYLES ===== */

body.conversational-test,
html.conversational-test {
    height: 100vh !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

.conversational-test .premium-container {
    height: calc(100vh - 64px) !important;
    max-height: calc(100vh - 64px) !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
}

.conversational-test .premium-header {
    flex-shrink: 0 !important;
}

.conversational-test .progress-section {
    flex-shrink: 0 !important;
}

.conversational-test .messages-container {
    flex: 1 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding-bottom: 280px !important;
    min-height: 0 !important;
    scroll-behavior: auto !important;
    position: relative !important;
}

.conversational-test .answer-footer {
    flex-shrink: 0 !important;
}

.result-preview-card .bot-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
    border: 2px solid #3b82f6 !important;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15) !important;
}

.city-buttons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    max-height: 400px;
    overflow-y: auto;
}

.city-button {
    background: white;
    border: 2px solid #e2e8f0;
    padding: 0.875rem 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #1e293b;
    text-align: center;
}

.city-button:hover {
    border-color: #3b82f6;
    background: #eff6ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.city-button:active {
    transform: scale(0.98);
}

/* ===== RESULT MODAL ===== */
.result-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1rem;
    animation: fadeIn 0.3s ease;
}

.result-modal-card {
    background: white;
    border-radius: 24px;
    padding: 1.5rem;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.result-modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.result-modal-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.5rem 0;
}

.result-modal-header p {
    color: #64748b;
    font-size: 0.875rem;
    margin: 0;
}

.result-modal-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.result-modal-btn {
    flex: 1;
    padding: 0.875rem 1rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.result-modal-btn.primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.result-modal-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.result-modal-btn.secondary {
    background: #f1f5f9;
    color: #64748b;
}

.result-modal-btn.secondary:hover {
    background: #e2e8f0;
}

/* ===== MOBILE SPECIFIC FIXES ===== */
@media (max-width: 768px) {
    .city-buttons-grid {
        grid-template-columns: 1fr;
    }

    .bot-text {
        font-size: 0.8125rem !important;
        line-height: 1.45 !important;
    }

    .user-content {
        font-size: 0.8125rem !important;
        padding: 0.375rem 0.5rem !important;
    }

    .bot-content {
        padding: 0.375rem 0.5rem !important;
        max-width: 92% !important;
    }

    .bot-icon {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.75rem !important;
        border-radius: 8px !important;
    }

    .premium-header {
        padding: 0.5rem 0.75rem !important;
    }

    .header-title h1 {
        font-size: 0.8125rem !important;
        margin: 0 !important;
        line-height: 1.2 !important;
    }

    .header-subtitle {
        display: none !important;
    }

    .assistant-avatar {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.875rem !important;
        border-radius: 8px !important;
    }

    .header-left {
        gap: 0.5rem !important;
    }

    .header-close {
        font-size: 1.125rem !important;
        padding: 0.25rem !important;
    }

    .progress-section {
        padding: 0.375rem 0.75rem !important;
    }

    .progress-info {
        margin-bottom: 0.25rem !important;
    }

    .progress-label,
    .progress-count {
        font-size: 0.625rem !important;
    }

    .progress-bar-container {
        height: 4px !important;
    }

    .conversational-test .messages-container {
        padding: 0.5rem !important;
        padding-bottom: 130px !important;
    }

    .message-card {
        margin-bottom: 0.75rem !important;
    }

    .answer-footer {
        padding: 0.375rem !important;
        padding-bottom: calc(0.375rem + env(safe-area-inset-bottom, 0px)) !important;
        max-height: 30vh !important;
        overflow-y: auto !important;
    }

    .answer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.25rem !important;
    }

    .answer-card {
        font-size: 0.75rem !important;
        padding: 0.5rem 0.25rem !important;
        min-height: 36px !important;
        line-height: 1.25 !important;
        border-radius: 8px !important;
        border-width: 1.5px !important;
    }

    .result-modal-card {
        padding: 1rem;
        margin: 0.5rem;
        max-height: 85vh;
    }

    .result-modal-header h2 {
        font-size: 1.125rem;
    }

    .result-modal-actions {
        flex-direction: column;
    }

    .result-modal-btn {
        font-size: 0.875rem;
        padding: 0.75rem;
    }

    .thinking-indicator {
        gap: 0.5rem !important;
        margin-bottom: 0.75rem !important;
    }

    .thinking-text {
        font-size: 0.6875rem !important;
    }

    .thinking-dot {
        width: 5px !important;
        height: 5px !important;
    }

    .bot-status-content {
        padding: 0.375rem 0.5rem !important;
    }

    .thinking-content {
        padding: 0.625rem 0.875rem !important;
    }
}

/* =========================================
   TEST LISTING PAGE STYLES (index.blade.php)
   ========================================= */

/* Arka Plan Deseni (Noktal� Grid) */
.page-bg {
    background-color: #f8fafc;
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 24px 24px;
}

/* KART TASARIMI */
.test-card {
    background: white;
    border: 1px solid #f1f5f9;
    border-radius: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.test-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1);
    border-color: #e2e8f0;
}

/* Kart�n �st�ndeki renkli �izgi */
.card-accent {
    height: 6px;
    width: 100%;
}

/* Renk Temalar� */
.accent-love {
    background: linear-gradient(90deg, #ec4899, #f43f5e);
}

.accent-mind {
    background: linear-gradient(90deg, #8b5cf6, #6366f1);
}

.accent-mood {
    background: linear-gradient(90deg, #0ea5e9, #3b82f6);
}

.accent-personality {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

/* �kon Kutusu */
.icon-box {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.test-card:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
}

/* Start Butonu */
.start-btn {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.test-card:hover .start-btn {
    background: #0f172a;
    color: white;
    border-color: #0f172a;
}

/* AI Badge Animasyonu */
.ai-badge {
    animation: pulse-soft 3s infinite;
}

@keyframes pulse-soft {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(0.98);
    }
}

/* Arama Kutusu Focus Efekti (Google Tarz�) */
.search-wrapper {
    position: relative;
    transition: all 0.3s ease;
}

.search-wrapper:focus-within {
    transform: translateY(-2px);
}

.search-wrapper:focus-within .search-glow {
    opacity: 0.6;
}

.search-box {
    position: relative;
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.3), 0 8px 10px -6px rgba(59, 130, 246, 0.2);
}

.search-input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 1.125rem;
    padding: 0.75rem 1rem;
    color: #334155;
    background: transparent;
}

.search-input::placeholder {
    color: #94a3b8;
}

.search-input:focus::placeholder {
    color: #cbd5e1;
}

.search-glow {
    position: absolute;
    inset: -1px;
    background: linear-gradient(to right, #3b82f6, #8b5cf6);
    border-radius: 1.5rem;
    filter: blur(8px);
    opacity: 0.2;
    transition: opacity 0.3s ease;
    z-index: -1;
}

/* Yatay Scrollbar Gizleme */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Otomatik Tamamlama Dropdown */
.autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    max-height: 400px;
    overflow-y: auto;
    z-index: 50;
    display: none;
}

.autocomplete-dropdown.show {
    display: block;
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.autocomplete-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.15s ease;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item.active {
    background: #f8fafc;
}

.autocomplete-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.autocomplete-text {
    flex: 1;
}

.autocomplete-title {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.9375rem;
}

.autocomplete-subtitle {
    font-size: 0.8125rem;
    color: #64748b;
    margin-top: 2px;
}

.autocomplete-match {
    background: #dbeafe;
    color: #1e40af;
    padding: 0 4px;
    border-radius: 3px;
}

.autocomplete-category {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

/* ===== MOB�L ���N PREMIUM KART TASARIMI ===== */
@media (max-width: 768px) {
    .test-card {
        /* Kart� zeminden y�kselt (G��l� G�lge) */
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.05) !important;

        /* Kenarl��� biraz daha hissedilir yap */
        border: 1px solid #e1e7ef !important;

        /* �ok hafif gradient ile premium hissi */
        background: linear-gradient(180deg, #ffffff 0%, #fcfdfe 100%) !important;

        /* Kenarlar� biraz daha yumu�at */
        border-radius: 20px !important;

        /* Alt bo�luk b�rak */
        margin-bottom: 0.5rem;
    }

    /* Mobilde 'card-accent' �izgisini biraz kal�nla�t�r */
    .card-accent {
        height: 8px !important;
    }

    /* �kon kutusunu daha belirgin yap */
    .test-card .icon-box {
        box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(0, 0, 0, 0.03);
    }

    /* 'Analizi Ba�lat' butonunu mobilde daha 't�klanabilir' g�ster */
    .start-btn {
        background-color: #f8fafc !important;
        border-color: #cbd5e1 !important;
        color: #334155 !important;
        font-weight: 700;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    }
}


/* ===== PREMIUM BADGE HOVER EFEKTLER� ===== */
.premium-badge {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background-size: 200% auto;
}

.test-card:hover .premium-badge {
    /* Canl� Alt�n Gradient */
    background-image: linear-gradient(to right, #f59e0b 0%, #fbbf24 51%, #f59e0b 100%);
    color: white !important;
    border-color: #fbbf24 !important;

    /* Parlak G�lge */
    box-shadow: 0 4px 15px -3px rgba(245, 158, 11, 0.6);

    /* Hafif B�y�me ve Y�kselme */
    transform: translateY(-2px) scale(1.05);
}

/* Hover durumunda badge i�indeki ikon rengi */
.test-card:hover .premium-badge i {
    color: #fffbeb !important;
    /* Cream white */
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.1));
}

/* Badge Text Rengi Override (Blade i�indeki classlar� ezmek i�in) */
.test-card:hover .premium-badge.text-amber-700 {
    color: white !important;
}