
/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@300;400;500&display=swap');

/* Mobile-First Base */
html, body {
    width: 100%;
    overflow-x: hidden;
}
/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #7dd3fc, #0ea5e9);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #38bdf8, #0284c7);
}

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

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Utility Classes */
.fade-in {
    animation: fadeIn 0.3s ease-out;
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

/* Glass Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #0ea5e9 0%, #d946ef 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Preview Tool Buttons */
.preview-tool-btn {
    @apply px-4 py-2 rounded-lg font-medium text-sm transition-all duration-200 flex items-center gap-2 border;
}

.preview-tool-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
/* Project Cards */
.project-card {
    @apply p-3 rounded-lg border border-gray-200 hover:border-primary-300 hover:bg-primary-50 transition-all duration-200 cursor-pointer;
    word-break: break-word;
}

.project-card:hover {
    transform: translateX(4px);
}
/* AI Pulse Effect */
.ai-pulse {
    position: relative;
}

.ai-pulse::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(217, 70, 239, 0.1));
    animation: pulse-glow 2s ease-in-out infinite;
    z-index: -1;
}

/* Loading Shimmer */
.shimmer-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}
/* Responsive Utilities */
@media (max-width: 1280px) {
    .preview-tool-btn span {
        display: none;
    }
    .preview-tool-btn {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    body {
        padding: 0;
    }
    .preview-tool-btn span {
        display: none;
    }
    .preview-tool-btn {
        flex: 1;
        justify-content: center;
        padding: 6px 8px;
        font-size: 0.7rem;
        min-width: 60px;
    }
}

@media (max-width: 390px) {
    .topbar .action-btn span,
    .topbar .profile-info {
        display: none;
    }
    .preview-tool-btn {
        font-size: 0.65rem;
        padding: 4px 6px;
    }
}
/* Custom Focus Styles */
:focus {
    outline: 2px solid rgba(14, 165, 233, 0.5);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

/* Selection Color */
::selection {
    background-color: rgba(14, 165, 233, 0.2);
    color: #0369a1;
}