/* Custom styles for Urban Track AI */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Badge styles */
.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    transition: all 0.2s;
}

.badge-primary {
    background-color: hsl(220 35% 25%);
    color: hsl(210 20% 98%);
}

.badge-secondary {
    background-color: hsl(35 30% 90%);
    color: hsl(220 35% 25%);
}

.badge-outline {
    background-color: transparent;
    border: 1px solid hsl(220 10% 85%);
    color: hsl(220 15% 10%);
}

.badge-accent {
    background-color: hsl(35 60% 50%);
    color: hsl(0 0% 100%);
}

/* Button styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.625rem 1.5rem;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: hsl(220 35% 25%);
    color: hsl(210 20% 98%);
}

.btn-primary:hover {
    background-color: hsl(220 35% 20%);
}

.btn-secondary {
    background-color: hsl(35 30% 90%);
    color: hsl(220 35% 25%);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid hsl(220 10% 85%);
    color: hsl(220 15% 10%);
}

.btn-outline:hover {
    background-color: hsl(220 10% 94%);
}

.btn-ghost {
    background-color: transparent;
    color: hsl(220 15% 10%);
}

.btn-ghost:hover {
    background-color: hsl(220 10% 94%);
}

/* Input styles */
.input {
    display: flex;
    width: 100%;
    border-radius: 0.5rem;
    border: 1px solid hsl(220 10% 85%);
    background-color: white;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.input:focus {
    outline: none;
    border-color: hsl(220 35% 25%);
    box-shadow: 0 0 0 3px hsla(220, 35%, 25%, 0.1);
}

/* Card styles */
.card {
    border-radius: 0.75rem;
    border: 1px solid hsl(220 10% 85% / 0.5);
    background-color: hsl(0 0% 100%);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

/* Text truncate utilities */
.line-clamp-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

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

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

/* Avatar fallback */
.avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, hsl(220 35% 45%), hsl(220 35% 25%));
    color: white;
    font-weight: 600;
    font-size: 1.125rem;
}

/* Touch-friendly tap targets */
@media (hover: none) and (pointer: coarse) {
    /* Larger tap targets on touch devices */
    .btn, a.btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Better touch spacing */
    button, a {
        touch-action: manipulation;
    }
}

/* Loading spinner */
.spinner {
    border: 2px solid hsl(220 10% 85%);
    border-top-color: hsl(220 35% 25%);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Dropdown menu */
.dropdown-menu {
    position: absolute;
    z-index: 50;
}

/* Responsive utilities */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Better button sizing on mobile */
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }
    
    /* Adjust card padding on mobile */
    .card {
        padding: 1rem;
    }
    
    /* Better text sizing */
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    /* Stack grid items on mobile */
    .grid {
        grid-template-columns: 1fr;
    }
    
    /* Better spacing for mobile */
    .gap-6 {
        gap: 1rem;
    }
    
    /* Reduce padding on mobile */
    .py-10 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

/* Small mobile devices */
@media (max-width: 640px) {
    /* Further reduce text sizes */
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.25rem;
    }
    
    /* Smaller buttons on very small screens */
    .btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.75rem;
    }
}

/* Print styles for CV */
@media print {
    header, footer, .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
    }
}
