/* ===========================================
   TIR.NET.TR - MODERN CSS 2025
   Premium Lojistik Platform Tasarımı
   =========================================== */

/* -----------------------------------------
   CSS Variables - Modern Color Palette
   ----------------------------------------- */
:root {
    /* Primary - Deep Blue */
    --tir-primary: #0066FF;
    --tir-primary-dark: #0052CC;
    --tir-primary-light: #4D94FF;
    --tir-primary-glow: rgba(0, 102, 255, 0.3);

    /* Secondary - Vibrant Orange */
    --tir-secondary: #FF6B35;
    --tir-secondary-dark: #E55A2B;
    --tir-secondary-light: #FF8F66;

    /* Accent Colors */
    --tir-success: #00D68F;
    --tir-warning: #FFB800;
    --tir-error: #FF4757;
    --tir-info: #00B8D9;

    /* Neutral Colors - Refined Grays */
    --tir-dark: #0A0F1E;
    --tir-gray-900: #1A1F2E;
    --tir-gray-800: #2D3348;
    --tir-gray-700: #454D66;
    --tir-gray-600: #6B7280;
    --tir-gray-500: #9CA3AF;
    --tir-gray-400: #CBD5E1;
    --tir-gray-300: #E2E8F0;
    --tir-gray-200: #F1F5F9;
    --tir-gray-100: #F8FAFC;
    --tir-white: #FFFFFF;

    /* Gradients */
    --tir-gradient-hero: linear-gradient(135deg, #0A0F1E 0%, #1A1F3C 50%, #0066FF 100%);
    --tir-gradient-primary: linear-gradient(135deg, #0066FF 0%, #00D4FF 100%);
    --tir-gradient-secondary: linear-gradient(135deg, #FF6B35 0%, #FF9A5A 100%);
    --tir-gradient-dark: linear-gradient(180deg, #0A0F1E 0%, #1A1F2E 100%);
    --tir-gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    --tir-gradient-card: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);

    /* Shadows - Soft & Modern */
    --tir-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --tir-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --tir-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    --tir-shadow-md: 0 8px 32px rgba(0, 0, 0, 0.1);
    --tir-shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
    --tir-shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.15);
    --tir-shadow-glow: 0 0 40px var(--tir-primary-glow);
    --tir-shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);

    /* Typography */
    --tir-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Border Radius - More Rounded */
    --tir-radius-sm: 8px;
    --tir-radius: 12px;
    --tir-radius-md: 16px;
    --tir-radius-lg: 24px;
    --tir-radius-xl: 32px;
    --tir-radius-full: 9999px;

    /* Transitions */
    --tir-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --tir-transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --tir-transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--tir-font-family);
    font-size: 16px;
    line-height: 1.7;
    color: var(--tir-gray-700);
    background-color: var(--tir-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.2;
    color: var(--tir-dark);
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

p {
    color: var(--tir-gray-600);
    line-height: 1.8;
}

a {
    text-decoration: none;
    color: var(--tir-primary);
    transition: var(--tir-transition-fast);
}

a:hover {
    color: var(--tir-primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* -----------------------------------------
   Navbar - Modern Glass Effect
   ----------------------------------------- */
.tir-navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    transition: var(--tir-transition);
}

.tir-navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--tir-shadow-md);
    padding: 0.75rem 0;
}

.tir-navbar .navbar-brand img,
.tir-navbar .navbar-logo {
    height: 75px !important;
    width: auto !important;
    max-width: 220px !important;
    object-fit: contain !important;
    transition: var(--tir-transition);
}

.tir-navbar .nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--tir-gray-700);
    padding: 0.75rem 1.25rem !important;
    border-radius: var(--tir-radius);
    transition: var(--tir-transition);
    position: relative;
}

.tir-navbar .nav-link:hover {
    color: var(--tir-primary);
    background: rgba(0, 102, 255, 0.06);
}

.tir-navbar .nav-link.active {
    color: var(--tir-primary);
    background: rgba(0, 102, 255, 0.1);
}

/* Mobile Navbar */
@media (max-width: 991.98px) {
    .tir-navbar {
        padding: 0.75rem 0;
    }

    .tir-navbar .navbar-brand img,
    .tir-navbar .navbar-logo {
        height: 55px !important;
    }

    .tir-navbar .navbar-toggler {
        border: none;
        padding: 0.75rem;
        background: var(--tir-gray-100);
        border-radius: var(--tir-radius);
    }

    .tir-navbar .navbar-toggler:focus {
        box-shadow: none;
    }

    .tir-navbar .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--tir-white);
        border-radius: 0 0 var(--tir-radius-lg) var(--tir-radius-lg);
        box-shadow: var(--tir-shadow-lg);
        padding: 1.5rem;
        border-top: 1px solid var(--tir-gray-200);
    }

    .tir-navbar .nav-link {
        padding: 1rem !important;
        margin-bottom: 0.25rem;
    }

    .tir-navbar .d-flex.gap-2 {
        flex-direction: column;
        gap: 0.75rem !important;
        padding-top: 1rem;
        border-top: 1px solid var(--tir-gray-200);
        margin-top: 1rem;
    }

    .tir-navbar .d-flex.gap-2 .btn {
        width: 100%;
        justify-content: center;
    }

    .tir-navbar .dropdown-menu {
        position: static !important;
        transform: none !important;
        border: none;
        box-shadow: none;
        background: var(--tir-gray-100);
        border-radius: var(--tir-radius);
        margin: 0.5rem 0;
        padding: 0.5rem;
    }
}

/* -----------------------------------------
   Mega Menu - Modern Style
   ----------------------------------------- */
.dropdown-menu-mega {
    border: none;
    border-radius: 0 0 var(--tir-radius-lg) var(--tir-radius-lg);
    box-shadow: var(--tir-shadow-xl);
    border-top: 3px solid var(--tir-primary);
    padding: 0;
    left: 0 !important;
    right: 0 !important;
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mega-card {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    border-radius: var(--tir-radius-md);
    text-decoration: none;
    transition: var(--tir-transition);
    background: var(--tir-gray-100);
    border: 1px solid transparent;
    height: 100%;
}

.mega-card:hover {
    background: var(--tir-white);
    border-color: var(--tir-gray-300);
    box-shadow: var(--tir-shadow-md);
    transform: translateY(-4px);
}

.mega-card-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: var(--tir-radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mega-card-icon i {
    font-size: 1.75rem;
}

.mega-card-icon.bg-blue {
    background: rgba(0, 102, 255, 0.12);
    color: var(--tir-primary);
}

.mega-card-icon.bg-orange {
    background: rgba(255, 107, 53, 0.12);
    color: var(--tir-secondary);
}

.mega-card-icon.bg-green {
    background: rgba(0, 214, 143, 0.12);
    color: var(--tir-success);
}

.mega-card-body {
    flex: 1;
}

.mega-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--tir-dark);
    margin-bottom: 0.5rem;
}

.mega-card-text {
    font-size: 0.9rem;
    color: var(--tir-gray-600);
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.mega-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.mega-card-tags span {
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
    background: var(--tir-white);
    border: 1px solid var(--tir-gray-200);
    border-radius: var(--tir-radius-full);
    color: var(--tir-gray-600);
}

@media (max-width: 991.98px) {
    .dropdown-menu-mega {
        position: static !important;
        box-shadow: none;
        border-top: none;
        border-radius: 0;
        padding: 0.5rem 0;
    }

    .mega-card {
        padding: 1rem;
        background: transparent;
    }

    .mega-card:hover {
        transform: none;
        box-shadow: none;
        background: var(--tir-gray-100);
    }

    .mega-card-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }

    .mega-card-text,
    .mega-card-tags,
    .dropdown-menu-mega .border-top {
        display: none !important;
    }
}

/* -----------------------------------------
   Buttons - Modern & Bold
   ----------------------------------------- */
.btn {
    font-weight: 600;
    padding: 0.875rem 1.75rem;
    border-radius: var(--tir-radius);
    transition: var(--tir-transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
}

.btn-tir-primary {
    background: var(--tir-gradient-primary);
    color: var(--tir-white);
    box-shadow: 0 4px 16px rgba(0, 102, 255, 0.3);
}

.btn-tir-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.4);
    color: var(--tir-white);
}

.btn-tir-secondary {
    background: var(--tir-gradient-secondary);
    color: var(--tir-white);
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.3);
}

.btn-tir-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.4);
    color: var(--tir-white);
}

.btn-tir-outline {
    background: transparent;
    border: 2px solid var(--tir-primary);
    color: var(--tir-primary);
}

.btn-tir-outline:hover {
    background: var(--tir-primary);
    color: var(--tir-white);
    transform: translateY(-2px);
}

.btn-tir-white {
    background: var(--tir-white);
    color: var(--tir-primary);
    box-shadow: var(--tir-shadow);
}

.btn-tir-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--tir-shadow-lg);
    color: var(--tir-primary-dark);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: var(--tir-radius-md);
}

/* -----------------------------------------
   Hero Section - 2025 Style
   ----------------------------------------- */
.tir-hero {
    background: var(--tir-gradient-hero);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
}

.tir-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(0, 102, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 107, 53, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.tir-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.tir-hero .hero-content {
    position: relative;
    z-index: 2;
}

.tir-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--tir-white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.tir-hero h1 span {
    background: linear-gradient(135deg, #00D4FF 0%, #00D68F 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tir-hero .hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    max-width: 550px;
    line-height: 1.8;
}

.tir-hero .hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat-item {
    text-align: left;
}

.hero-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--tir-white);
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hero Visual - Modern Dashboard */
.hero-visual {
    position: relative;
    z-index: 2;
}

.hero-dashboard {
    position: relative;
    padding: 2rem;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

/* Main Dashboard Card */
.dashboard-main {
    background: #ffffff !important;
    border-radius: 24px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: slideInUp 0.8s ease-out;
    position: relative;
    z-index: 1;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.dashboard-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    color: var(--tir-dark);
    font-size: 1rem;
}

.dashboard-title i {
    color: var(--tir-primary);
    font-size: 1.25rem;
}

.dashboard-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    padding: 0.4rem 0.85rem;
    border-radius: var(--tir-radius-full);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* Dashboard Map */
.dashboard-map {
    position: relative;
    padding: 1.5rem;
    background: #ffffff;
}

.dashboard-map svg {
    width: 100%;
    height: auto;
    max-height: 200px;
}

.route-path {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: drawRoute 3s ease-out forwards;
}

@keyframes drawRoute {
    to { stroke-dashoffset: 0; }
}

.pulse-ring {
    animation: pulse-ring 2s ease-out infinite;
    transform-origin: center;
}

@keyframes pulse-ring {
    0% { opacity: 0.8; transform: scale(1); }
    100% { opacity: 0; transform: scale(2); }
}

.truck-marker {
    animation: truckMove 8s ease-in-out infinite;
}

@keyframes truckMove {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(30px); }
}

.route-info {
    position: absolute;
    bottom: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: var(--tir-radius-full);
    box-shadow: var(--tir-shadow-sm);
    font-size: 0.85rem;
    font-weight: 600;
}

.route-from { color: var(--tir-primary); }
.route-to { color: #10b981; }
.route-info i { color: var(--tir-gray-400); font-size: 0.75rem; }

/* Dashboard Stats */
.dashboard-stats {
    display: flex;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.dash-stat {
    flex: 1;
    text-align: center;
    padding: 1rem 0.75rem;
    border-right: 1px solid #e2e8f0;
}

.dash-stat:last-child {
    border-right: none;
}

.dash-stat-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}

.dash-stat-label {
    font-size: 0.7rem;
    color: #64748b;
    margin-top: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Floating Notifications */
.hero-notification {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #ffffff;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255,255,255,0.1);
    max-width: 260px;
    animation: floatNotif 5s ease-in-out infinite;
    z-index: 10;
}

.notif-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notif-icon i {
    font-size: 1rem;
    color: white;
}

.notif-icon-blue { background: linear-gradient(135deg, #0066FF, #00D4FF); }
.notif-icon-green { background: linear-gradient(135deg, #10b981, #34d399); }
.notif-icon-orange { background: linear-gradient(135deg, #FF6B35, #FF9A5A); }

.notif-content {
    flex: 1;
    min-width: 0;
}

.notif-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.notif-text {
    font-size: 0.7rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.notif-time {
    font-size: 0.65rem;
    color: #94a3b8;
    white-space: nowrap;
    font-weight: 500;
}

.notif-1 {
    top: 0;
    left: 0;
    animation-delay: 0s;
}

.notif-2 {
    top: 50%;
    right: -10px;
    transform: translateY(-50%);
    animation-delay: 1.5s;
}

.notif-3 {
    bottom: 0;
    left: 10px;
    animation-delay: 3s;
}

@keyframes floatNotif {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

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

/* -----------------------------------------
   Section Styles
   ----------------------------------------- */
.tir-section {
    padding: 100px 0;
    position: relative;
}

.tir-section.bg-light {
    background: var(--tir-gray-100);
}

.tir-section.bg-dark {
    background: var(--tir-gradient-dark);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1) 0%, rgba(0, 212, 255, 0.1) 100%);
    color: var(--tir-primary);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.6rem 1.5rem;
    border-radius: var(--tir-radius-full);
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(0, 102, 255, 0.2);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--tir-dark);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--tir-gray-600);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* -----------------------------------------
   User Type Cards - Premium Style
   ----------------------------------------- */
.user-type-card {
    background: var(--tir-white);
    border-radius: var(--tir-radius-xl);
    padding: 2.5rem;
    height: 100%;
    box-shadow: var(--tir-shadow-card);
    transition: var(--tir-transition);
    border: 1px solid var(--tir-gray-200);
    position: relative;
    overflow: hidden;
}

.user-type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--tir-gradient-primary);
    transform: scaleX(0);
    transition: var(--tir-transition);
}

.user-type-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--tir-shadow-xl);
    border-color: transparent;
}

.user-type-card:hover::before {
    transform: scaleX(1);
}

.user-type-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1) 0%, rgba(0, 212, 255, 0.1) 100%);
    border-radius: var(--tir-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--tir-transition);
}

.user-type-card:hover .user-type-icon {
    background: var(--tir-gradient-primary);
}

.user-type-icon i {
    font-size: 2.5rem;
    color: var(--tir-primary);
    transition: var(--tir-transition);
}

.user-type-card:hover .user-type-icon i {
    color: var(--tir-white);
}

.user-type-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.user-type-card p {
    margin-bottom: 1.5rem;
}

.user-type-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.user-type-features li {
    padding: 0.6rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--tir-gray-700);
    font-size: 0.95rem;
}

.user-type-features li i {
    color: var(--tir-success);
    font-size: 1rem;
}

/* Card Variants */
.user-type-card.card-freelance .user-type-icon {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(255, 154, 90, 0.1) 100%);
}

.user-type-card.card-freelance .user-type-icon i {
    color: var(--tir-secondary);
}

.user-type-card.card-freelance:hover .user-type-icon {
    background: var(--tir-gradient-secondary);
}

.user-type-card.card-sender .user-type-icon {
    background: linear-gradient(135deg, rgba(0, 214, 143, 0.1) 0%, rgba(0, 214, 143, 0.05) 100%);
}

.user-type-card.card-sender .user-type-icon i {
    color: var(--tir-success);
}

.user-type-card.card-sender:hover .user-type-icon {
    background: linear-gradient(135deg, #00D68F 0%, #00B377 100%);
}

/* -----------------------------------------
   Feature Cards - Modern Glass
   ----------------------------------------- */
.feature-card {
    background: var(--tir-white);
    border-radius: var(--tir-radius-lg);
    padding: 2rem;
    height: 100%;
    box-shadow: var(--tir-shadow-card);
    transition: var(--tir-transition);
    border: 1px solid var(--tir-gray-200);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--tir-shadow-lg);
    border-color: var(--tir-primary-light);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1) 0%, rgba(0, 212, 255, 0.1) 100%);
    border-radius: var(--tir-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon i {
    font-size: 1.75rem;
    color: var(--tir-primary);
}

.feature-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.feature-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
    line-height: 1.7;
}

/* -----------------------------------------
   Step Cards - Process Flow
   ----------------------------------------- */
.step-card {
    text-align: center;
    padding: 2rem;
    position: relative;
}

.step-number {
    width: 70px;
    height: 70px;
    background: var(--tir-gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--tir-white);
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.3);
}

.step-card h4 {
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.step-card p {
    font-size: 0.95rem;
}

/* -----------------------------------------
   How It Works Tabs
   ----------------------------------------- */
.how-it-works-tabs .nav-tabs {
    border: none;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.how-it-works-tabs .nav-link {
    border: 2px solid var(--tir-gray-300);
    border-radius: var(--tir-radius-full);
    padding: 0.875rem 2rem;
    font-weight: 600;
    color: var(--tir-gray-600);
    transition: var(--tir-transition);
    background: var(--tir-white);
}

.how-it-works-tabs .nav-link:hover {
    border-color: var(--tir-primary);
    color: var(--tir-primary);
}

.how-it-works-tabs .nav-link.active {
    background: var(--tir-gradient-primary);
    border-color: transparent;
    color: var(--tir-white);
    box-shadow: 0 4px 16px rgba(0, 102, 255, 0.3);
}

/* -----------------------------------------
   Map Preview Section
   ----------------------------------------- */
.map-container {
    background: var(--tir-white);
    border-radius: var(--tir-radius-xl);
    overflow: hidden;
    box-shadow: var(--tir-shadow-xl);
    position: relative;
    min-height: 450px;
    border: 1px solid var(--tir-gray-200);
}

.map-overlay-features {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.map-feature-badge {
    background: var(--tir-white);
    padding: 0.75rem 1.25rem;
    border-radius: var(--tir-radius);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--tir-shadow-md);
    font-weight: 600;
    font-size: 0.9rem;
}

.map-feature-badge i {
    color: var(--tir-primary);
    font-size: 1.1rem;
}

/* -----------------------------------------
   Trust Cards
   ----------------------------------------- */
.trust-section {
    background: var(--tir-gray-100);
}

.trust-card {
    background: var(--tir-white);
    border-radius: var(--tir-radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--tir-shadow-card);
    transition: var(--tir-transition);
    height: 100%;
}

.trust-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--tir-shadow-lg);
}

.trust-icon {
    width: 72px;
    height: 72px;
    background: var(--tir-gradient-primary);
    border-radius: var(--tir-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.trust-icon i {
    font-size: 2rem;
    color: var(--tir-white);
}

.trust-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.trust-card p {
    font-size: 0.9rem;
    margin: 0;
}

/* -----------------------------------------
   CTA Section
   ----------------------------------------- */
.cta-section {
    background: var(--tir-gradient-primary);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.cta-content h2 {
    color: var(--tir-white);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* -----------------------------------------
   Page Header (Subpages)
   ----------------------------------------- */
.page-header {
    background: var(--tir-gradient-hero);
    padding: 160px 0 80px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(0, 102, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.page-header .breadcrumb {
    margin-bottom: 1rem;
    background: transparent;
    padding: 0;
}

.page-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7);
}

.page-header .breadcrumb-item a:hover {
    color: var(--tir-white);
}

.page-header .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.5);
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

.page-header h1 {
    color: var(--tir-white);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.page-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    max-width: 600px;
}

/* -----------------------------------------
   Content Section
   ----------------------------------------- */
.content-section {
    padding: 80px 0;
}

.content-section.bg-light {
    background: var(--tir-gray-100);
}

/* Benefit List */
.benefit-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefit-list li {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: var(--tir-white);
    border-radius: var(--tir-radius-md);
    box-shadow: var(--tir-shadow-card);
    transition: var(--tir-transition);
    border: 1px solid var(--tir-gray-200);
}

.benefit-list li:hover {
    box-shadow: var(--tir-shadow-lg);
    transform: translateX(8px);
    border-color: var(--tir-primary-light);
}

.benefit-icon {
    width: 52px;
    height: 52px;
    background: var(--tir-gradient-primary);
    border-radius: var(--tir-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefit-icon i {
    color: var(--tir-white);
    font-size: 1.5rem;
}

.benefit-content h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.benefit-content p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--tir-white);
    border-radius: var(--tir-radius-lg);
    box-shadow: var(--tir-shadow-card);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--tir-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--tir-gray-600);
    font-weight: 500;
}

@media (max-width: 991.98px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* -----------------------------------------
   Contact Cards
   ----------------------------------------- */
.contact-card {
    background: var(--tir-white);
    border-radius: var(--tir-radius-lg);
    padding: 2rem;
    height: 100%;
    box-shadow: var(--tir-shadow-card);
    text-align: center;
    transition: var(--tir-transition);
    border: 1px solid var(--tir-gray-200);
}

.contact-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--tir-shadow-lg);
    border-color: var(--tir-primary-light);
}

.contact-card-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1) 0%, rgba(0, 212, 255, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.contact-card-icon i {
    font-size: 1.75rem;
    color: var(--tir-primary);
}

.contact-form {
    background: var(--tir-white);
    border-radius: var(--tir-radius-xl);
    padding: 2.5rem;
    box-shadow: var(--tir-shadow-lg);
    border: 1px solid var(--tir-gray-200);
}

.contact-form .form-control,
.contact-form .form-select {
    border: 2px solid var(--tir-gray-200);
    border-radius: var(--tir-radius);
    padding: 0.875rem 1rem;
    transition: var(--tir-transition);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--tir-primary);
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
}

/* -----------------------------------------
   Footer - Modern Dark
   ----------------------------------------- */
.tir-footer {
    background: var(--tir-gradient-dark);
    padding: 80px 0 0;
}

.footer-brand img,
.footer-brand .footer-logo-white {
    height: 60px;
    width: auto;
    max-width: 160px;
    margin-bottom: 1.5rem;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.footer-brand p {
    color: var(--tir-gray-400);
    max-width: 300px;
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-title {
    color: var(--tir-white);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--tir-gray-400);
    transition: var(--tir-transition-fast);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--tir-white);
    padding-left: 6px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-contact-item i {
    color: var(--tir-primary-light);
    font-size: 1.25rem;
    margin-top: 0.15rem;
}

.footer-contact-item span {
    color: var(--tir-gray-400);
    font-size: 0.95rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.footer-social a {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--tir-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tir-gray-400);
    transition: var(--tir-transition);
}

.footer-social a:hover {
    background: var(--tir-primary);
    color: var(--tir-white);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem 0;
    margin-top: 4rem;
}

.footer-bottom p {
    color: var(--tir-gray-500);
    margin: 0;
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
    justify-content: flex-end;
}

.footer-bottom-links a {
    color: var(--tir-gray-500);
    font-size: 0.9rem;
}

.footer-bottom-links a:hover {
    color: var(--tir-white);
}

@media (max-width: 767.98px) {
    .footer-bottom {
        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
        margin-top: 1rem;
    }
}

/* -----------------------------------------
   Responsive Styles
   ----------------------------------------- */
@media (max-width: 991.98px) {
    .tir-hero {
        padding-top: 120px;
        padding-bottom: 60px;
        min-height: auto;
    }

    .hero-stats {
        gap: 2rem;
        flex-wrap: wrap;
    }

    .hero-visual {
        margin-top: 3rem;
    }

    /* Hero Dashboard Tablet */
    .hero-dashboard {
        padding: 0;
    }

    .hero-notification {
        position: relative;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        max-width: 100%;
        margin-bottom: 0.75rem;
        animation: none;
    }

    .hero-notification:last-child {
        margin-bottom: 0;
    }

    .dashboard-main {
        margin-bottom: 1rem;
    }
}

@media (max-width: 767.98px) {
    .tir-section {
        padding: 60px 0;
    }

    .tir-hero h1 {
        font-size: 2rem;
    }

    .tir-hero .hero-subtitle {
        font-size: 1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .page-header {
        padding: 120px 0 60px;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }

    .how-it-works-tabs .nav-tabs {
        flex-direction: column;
        align-items: stretch;
    }

    .how-it-works-tabs .nav-link {
        text-align: center;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    /* Hero Dashboard Mobile */
    .hero-visual {
        margin-top: 2rem;
    }

    .dashboard-header {
        padding: 1rem 1.25rem;
    }

    .dashboard-title {
        font-size: 0.9rem;
    }

    .dashboard-title span {
        display: none;
    }

    .dashboard-title::after {
        content: 'Filo Paneli';
        font-size: 0.9rem;
    }

    .dashboard-map {
        padding: 1rem;
    }

    .dashboard-map svg {
        max-height: 150px;
    }

    .route-info {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    .dash-stat {
        padding: 1rem 0.5rem;
    }

    .dash-stat-value {
        font-size: 1.25rem;
    }

    .dash-stat-label {
        font-size: 0.65rem;
    }

    .hero-notification {
        padding: 0.75rem;
    }

    .notif-icon {
        width: 32px;
        height: 32px;
    }

    .notif-icon i {
        font-size: 0.9rem;
    }

    .notif-title {
        font-size: 0.75rem;
    }

    .notif-text {
        font-size: 0.65rem;
    }

    /* Hide middle notification on very small screens */
    .notif-2 {
        display: none;
    }
}

/* -----------------------------------------
   Utility Classes
   ----------------------------------------- */
.text-primary { color: var(--tir-primary) !important; }
.text-secondary { color: var(--tir-secondary) !important; }
.text-success { color: var(--tir-success) !important; }

.bg-gradient-primary { background: var(--tir-gradient-primary); }

.rounded-xl { border-radius: var(--tir-radius-xl); }
.rounded-lg { border-radius: var(--tir-radius-lg); }

.shadow-tir { box-shadow: var(--tir-shadow); }
.shadow-tir-lg { box-shadow: var(--tir-shadow-lg); }

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Spinner */
.loading-spinner {
    width: 44px;
    height: 44px;
    border: 3px solid var(--tir-gray-200);
    border-top-color: var(--tir-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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