/**
 * Modern Company Profile Card - Guest View
 * Glassmorphism & Clean Card Design
 */

/* Modal Overlay */
.company-profile-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Profile Card */
.company-profile-card {
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    max-width: 420px;
    width: 100%;
    overflow: hidden;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Banner Header */
.company-banner {
    position: relative;
    background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy-dark) 100%);
    padding: 1.5rem 1.5rem 3.5rem;
    text-align: center;
}

.company-banner.category-tourism {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.company-banner.category-aviation {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.company-banner.category-hotel {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.company-banner.category-default {
    background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy-dark) 100%);
}

/* Close Button */
.close-profile-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-profile-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Logo Wrapper */
.company-logo-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.company-logo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: white;
    border: 3px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.company-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.company-logo span {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--navy-dark);
    font-family: var(--font-heading);
}

/* Stand Badge */
.stand-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.4rem 0.85rem;
    border-radius: 50px;
    font-weight: 700;
    color: var(--navy-dark);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: var(--shadow-sm);
    font-size: 0.8rem;
    font-family: var(--font-body);
}

.stand-badge i {
    font-size: 0.85rem;
}

/* Company Info Section */
.company-info-section {
    padding: 1.25rem 1.5rem;
}

.company-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    text-align: center;
    font-family: var(--font-heading);
}

.company-category {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy-dark) 100%);
    color: white;
    padding: 0.4rem 0.85rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.company-category i {
    font-size: 0.85rem;
}

.company-description {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    text-align: center;
    font-family: var(--font-body);
}

/* Status Badges */
.status-badges {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--bg-body);
    color: var(--text-muted);
}

.status-badge.available {
    background: #c6f6d5;
    color: #22543d;
}

.status-badge.occupied {
    background: #fed7d7;
    color: #742a2a;
}

.status-badge.reserved {
    background: #feebc8;
    color: #7c2d12;
}

.status-badge i {
    font-size: 0.6rem;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 0.65rem;
    justify-content: center;
    margin-top: 0.75rem;
}

.action-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    background: var(--bg-body);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    transition: var(--transition-base);
}

.action-link:hover {
    background: var(--navy-light);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Navigation Footer */
.navigation-footer {
    background: var(--bg-body);
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border-color);
}

.navigation-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-heading);
}

.navigation-title i {
    color: var(--navy-light);
}

/* Navigation Controls */
.navigation-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 0.85rem;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition-base);
    font-family: var(--font-body);
}

.nav-btn:hover {
    border-color: var(--navy-light);
    background: var(--navy-light);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.nav-btn i {
    font-size: 0.95rem;
}

.nav-btn-start:hover {
    background: #48bb78;
    border-color: #48bb78;
}

.nav-btn-end:hover {
    background: #ed8936;
    border-color: #ed8936;
}

/* Route Action Buttons */
.route-action-buttons {
    display: flex;
    gap: 0.5rem;
}

.route-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition-base);
}

.route-btn-show {
    background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy-dark) 100%);
    color: white;
}

.route-btn-show:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.route-btn-clear {
    background: var(--border-color);
    color: var(--text-muted);
}

.route-btn-clear:hover {
    background: #cbd5e0;
}

/* Route Info Compact */
.route-info-compact {
    margin-top: 0.65rem;
    padding: 0.75rem;
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.route-point {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 0;
    font-size: 0.8rem;
    color: var(--text-main);
}

.route-point i {
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 576px) {
    .company-profile-modal {
        align-items: flex-end;
        padding: 0;
    }

    .company-profile-card {
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        animation: slideUpMobile 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    @keyframes slideUpMobile {
        from {
            transform: translateY(100%);
        }

        to {
            transform: translateY(0);
        }
    }

    .company-banner {
        padding: 1.25rem 1.25rem 3rem;
    }

    .company-logo {
        width: 60px;
        height: 60px;
    }

    .company-logo span {
        font-size: 1.5rem;
    }

    .company-info-section {
        padding: 1rem 1.25rem;
    }

    .company-name {
        font-size: 1.25rem;
    }

    .navigation-footer {
        padding: 1rem 1.25rem;
    }

    .navigation-controls {
        grid-template-columns: 1fr;
    }
}

/* Scrollbar Styling */
.company-info-section::-webkit-scrollbar {
    width: 6px;
}

.company-info-section::-webkit-scrollbar-track {
    background: var(--bg-body);
}

.company-info-section::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}

.company-info-section::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}