/**
 * Modern Crowdfunding Platform Styles
 * Bootstrap 5 Based - Mobile First Responsive Design
 * Version: 5.0
 */

/* ==========================================
   1. GENERAL STYLES
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
    line-height: 1.6;
    color: #212529;
}

/* ==========================================
   2. UTILITY CLASSES
   ========================================== */

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15) !important;
}

.backdrop-blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ==========================================
   3. CARDS & CONTAINERS
   ========================================== */

.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card-img-top {
    border-radius: 16px 16px 0 0;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.rounded-xl {
    border-radius: 16px !important;
}

.rounded-2xl {
    border-radius: 24px !important;
}

/* ==========================================
   4. BUTTONS
   ========================================== */

.btn {
    border-radius: 12px;
    font-weight: 500;
    padding: 0.625rem 1.5rem;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #ED6E4F 0%, #d85a3a 100%);
    border: none;
    box-shadow: 0 4px 12px rgba(237, 110, 79, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #d85a3a 0%, #c74d2f 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(237, 110, 79, 0.4);
}

.btn-outline-primary {
    color: #ED6E4F;
    border: 2px solid #ED6E4F;
}

.btn-outline-primary:hover {
    background: #ED6E4F;
    border-color: #ED6E4F;
    color: white;
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.375rem 1rem;
    font-size: 0.875rem;
}

.btn-rounded-pill,
.btn.rounded-pill {
    border-radius: 50px !important;
}

/* ==========================================
   5. FORMS
   ========================================== */

.form-control,
.form-select {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: #ED6E4F;
    box-shadow: 0 0 0 0.2rem rgba(237, 110, 79, 0.15);
}

.input-group-text {
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

/* ==========================================
   6. PROGRESS BARS
   ========================================== */

.progress {
    height: 8px;
    border-radius: 10px;
    background-color: #e9ecef;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, #10B981 0%, #059669 100%);
    border-radius: 10px;
    transition: width 0.6s ease;
}

/* ==========================================
   7. BADGES
   ========================================== */

.badge {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

/* ==========================================
   8. NAVBAR
   ========================================== */

.navbar {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar .dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 0.5rem;
}

.navbar .dropdown-item {
    border-radius: 8px;
    padding: 0.625rem 1rem;
    transition: all 0.2s ease;
}

.navbar .dropdown-item:hover {
    background-color: #f8f9fa;
    transform: translateX(4px);
}

/* ==========================================
   9. FOOTER
   ========================================== */

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: #ED6E4F !important;
}

/* Bottom Navigation for Mobile */
.navbar.fixed-bottom {
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
    z-index: 1030;
}

.navbar.fixed-bottom a {
    transition: all 0.2s ease;
}

.navbar.fixed-bottom a:hover {
    transform: translateY(-2px);
}

/* ==========================================
   10. ANIMATIONS
   ========================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* ==========================================
   11. SLICK CAROUSEL OVERRIDES
   ========================================== */

.slick-dots {
    bottom: -30px;
}

.slick-dots li button:before {
    font-size: 10px;
    color: #ED6E4F;
    opacity: 0.3;
}

.slick-dots li.slick-active button:before {
    opacity: 1;
    color: #ED6E4F;
}

/* ==========================================
   12. RESPONSIVE UTILITIES
   ========================================== */

@media (max-width: 767.98px) {
    .btn {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
    
    .btn-lg {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
    
    h1, .h1 {
        font-size: 1.75rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.5rem;
    }
}

@media (min-width: 768px) {
    .card-img-top {
        height: 200px;
    }
}

/* ==========================================
   13. LOADING STATES
   ========================================== */

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ==========================================
   14. PRINT STYLES
   ========================================== */

@media print {
    .navbar,
    .footer,
    .floating-whatsapp,
    .btn {
        display: none !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #dee2e6;
    }
}

/* ==========================================
   15. ACCESSIBILITY
   ========================================== */

.sr-only-focusable:not(:focus):not(:focus-within) {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border-width: 0 !important;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
