/* ============================================
   MOBILE DASHBOARD STYLES
   ============================================ */

/* Hide desktop elements on mobile */
.desktop-only {
    display: block;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    
    /* Mobile Home Button */
    .mobile-home-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: rgba(59, 130, 246, 0.1);
        border: 1px solid rgba(59, 130, 246, 0.2);
        color: #3b82f6;
        border-radius: 8px;
        font-size: 1.125rem;
        transition: all 0.2s;
        position: fixed;
        top: 1rem;
        right: 1rem;
        z-index: 9999;
        text-decoration: none;
    }
    
    .mobile-home-btn:hover {
        background: rgba(59, 130, 246, 0.2);
        transform: scale(1.05);
    }
}

/* Mobile Compact Bar - Tek Satır İnfo + Status */
.mobile-compact-bar {
    display: none;
    position: absolute;
    top: 15px;
    left: 0.5rem;
    right: 0.5rem;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    z-index: 500;
    align-items: center;
    gap: 0.5rem;
    animation: slideDown 0.3s ease;
}

.mobile-bar-content {
    flex: 1;
    min-width: 0;
}

.mobile-bar-message,
.mobile-bar-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: #cbd5e1;
}

.mobile-bar-message i {
    color: #3b82f6;
    font-size: 0.875rem;
}

.mobile-bar-message span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-bar-status {
    gap: 0.75rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
}

.status-item i {
    font-size: 0.5rem;
}

.status-divider {
    width: 1px;
    height: 12px;
    background: rgba(255, 255, 255, 0.2);
}

.mobile-bar-button {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-bar-button:active {
    transform: scale(0.95);
}

.mobile-bar-actions {
    display: flex;
    gap: 0.375rem;
    flex-shrink: 0;
}

.mobile-bar-button.reset-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    backdrop-filter: blur(2px);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Form Popup */
.mobile-form-popup {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.mobile-form-popup.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.mobile-form-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.mobile-form-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 85vh;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -10px 60px rgba(0, 0, 0, 0.8);
    animation: slideUp 0.3s ease;
    overflow-y: auto;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.mobile-form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.05) 100%);
    position: sticky;
    top: 0;
    z-index: 10;
}

.mobile-form-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-form-header i {
    color: #3b82f6;
}

.mobile-close-btn {
    width: 36px;
    height: 36px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    transition: all 0.2s;
}

.mobile-close-btn:active {
    transform: scale(0.95);
    background: rgba(239, 68, 68, 0.2);
}

.mobile-form-body {
    padding: 1.5rem;
}

.mobile-location-section {
    margin-bottom: 1.5rem;
}

.mobile-location-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.75rem;
}

.mobile-input-group {
    display: flex;
    gap: 0.75rem;
}

.mobile-input {
    flex: 1;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    color: white;
    font-size: 0.9375rem;
    transition: all 0.2s;
}

.mobile-input:focus {
    outline: none;
    border-color: #3b82f6;
    background: rgba(255, 255, 255, 0.08);
}

.mobile-input::placeholder {
    color: #64748b;
}

.mobile-location-btn {
    width: 48px;
    height: 48px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    transition: all 0.2s;
    flex-shrink: 0;
}

.mobile-location-btn:active {
    transform: scale(0.95);
    background: rgba(59, 130, 246, 0.2);
}

.mobile-suggestions {
    margin-top: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

.mobile-suggestions.active {
    display: block;
}

.mobile-suggestion-item {
    padding: 0.875rem 1rem;
    color: #cbd5e1;
    font-size: 0.875rem;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s;
}

.mobile-suggestion-item:last-child {
    border-bottom: none;
}

.mobile-suggestion-item:active {
    background: rgba(59, 130, 246, 0.1);
}

.mobile-form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.mobile-btn {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.2s;
}

.mobile-calculate {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.mobile-calculate:active {
    transform: scale(0.98);
}

.mobile-reset {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.mobile-reset:active {
    background: rgba(239, 68, 68, 0.2);
}

/* Mobile Result */
.mobile-result {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 16px;
    animation: slideDown 0.3s ease;
}

.mobile-result-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: #3b82f6;
    margin-bottom: 1rem;
}

.mobile-result-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.875rem;
}

.mobile-result-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.mobile-result-price {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.05) 100%);
    border-color: rgba(16, 185, 129, 0.3);
}

.mobile-result-icon {
    width: 48px;
    height: 48px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.mobile-result-price .mobile-result-icon {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.mobile-result-info {
    flex: 1;
}

.mobile-result-label {
    font-size: 0.8125rem;
    color: #94a3b8;
    margin-bottom: 0.25rem;
}

.mobile-result-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.mobile-result-price .mobile-result-value {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mobile WhatsApp Button */
.mobile-whatsapp-btn {
    width: 100%;
    padding: 1rem;
    margin-top: 1rem;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.mobile-whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.mobile-whatsapp-btn:active {
    transform: translateY(0);
}

.mobile-whatsapp-btn i {
    font-size: 1.25rem;
}

/* Mobile WhatsApp Button Compact (below compact bar) */
.mobile-whatsapp-btn-compact {
    width: 100%;
    padding: 1rem;
    margin-top: 1rem;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.mobile-whatsapp-btn-compact:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.4);
}

.mobile-whatsapp-btn-compact i {
    font-size: 1.25rem;
}

/* Mobile Result Compact (Below Compact Bar) */
.mobile-result-compact {
    display: none;
    position: absolute;
    top: 80px;
    left: 0.5rem;
    right: 0.5rem;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    z-index: 499;
    animation: slideDown 0.3s ease;
}

.mobile-result-compact .mobile-result-header {
    margin-bottom: 1rem;
}

.mobile-result-compact .mobile-result-grid {
    margin-bottom: 1rem;
}

.close-mobile-result {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.close-mobile-result:hover {
    background: rgba(239, 68, 68, 0.3);
    transform: scale(1.1);
}

/* Show mobile elements only on mobile */
@media (max-width: 768px) {
    .mobile-compact-bar {
        display: flex;
    }
}

/* Scrollbar styling for mobile */
.mobile-form-container::-webkit-scrollbar {
    width: 6px;
}

.mobile-form-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.mobile-form-container::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.3);
    border-radius: 3px;
}

.mobile-suggestions::-webkit-scrollbar {
    width: 4px;
}

.mobile-suggestions::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.mobile-suggestions::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.3);
    border-radius: 2px;
}
