/* Additional UniEx Expo Styling Enhancements */

/* Logo styling */
.navbar-brand img {
    max-height: 40px;
    width: auto;
    transition: opacity 0.3s ease;
}

.navbar-brand img:hover {
    opacity: 0.8;
}

/* Search form on homepage */
.search-form .form-control {
    border-radius: 50px 0 0 50px;
    padding: 0.75rem 1.5rem;
    border-right: none;
}

.search-form .btn {
    border-radius: 0 50px 50px 0;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #E91E7E 0%, #FF4B9D 100%);
    border: none;
    font-weight: 600;
}

.search-form .btn:hover {
    background: linear-gradient(135deg, #C91867 0%, #E91E7E 100%);
}

/* Company cards enhancement */
.company-card {
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.company-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(233, 30, 126, 0.15);
    border-color: var(--primary-color);
}

.company-card .card-img-top {
    height: 200px;
    object-fit: contain;
    padding: 1.5rem;
    background: #fff;
}

/* Category badges */
.category-badge {
    background-color: rgba(233, 30, 126, 0.1);
    color: var(--primary-color);
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Stats cards */
.stats-card {
    background: linear-gradient(135deg, #E91E7E 0%, #FF4B9D 100%);
    color: white;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
}

.stats-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stats-card p {
    margin-bottom: 0;
    opacity: 0.9;
}

/* News article styling */
.news-card {
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.news-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.news-card img {
    height: 250px;
    object-fit: cover;
    width: 100%;
}

.news-card .badge {
    background-color: var(--primary-color);
}

/* Profile page enhancements */
.profile-header {
    background: linear-gradient(135deg, #E91E7E 0%, #FF4B9D 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.profile-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    background: white;
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Chat interface */
.chat-list-item {
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.chat-list-item:hover,
.chat-list-item.active {
    background-color: rgba(233, 30, 126, 0.05);
    border-left-color: var(--primary-color);
}

.chat-message {
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    max-width: 70%;
    margin-bottom: 0.75rem;
}

.chat-message.sent {
    background-color: var(--primary-color);
    color: white;
    margin-left: auto;
}

.chat-message.received {
    background-color: #f1f3f5;
    color: var(--dark-color);
}

/* Form enhancements */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(233, 30, 126, 0.15);
}

/* Alert styling */
.alert-success {
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    border-left: 4px solid var(--danger-color);
}

.alert-info {
    border-left: 4px solid var(--primary-color);
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 1.5rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: var(--text-muted);
}

/* Section titles */
.section-title {
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #E91E7E 0%, #FF4B9D 100%);
}

/* Filter sidebar */
.filter-sidebar {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0.75rem;
    position: sticky;
    top: 20px;
}

.filter-sidebar .form-label {
    font-weight: 600;
    color: var(--secondary-color);
}

/* Mobile App buttons in footer */
footer .btn-outline-light {
    border-width: 2px;
    font-weight: 600;
    transition: all 0.3s ease;
}

footer .btn-outline-light:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

/* Verified badge */
.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Loading states */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
    to {transform: rotate(360deg);}
}

/* Scroll to top button */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(233, 30, 126, 0.3);
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
}

.scroll-top.show {
    display: flex;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .filter-sidebar {
        position: static;
        margin-bottom: 2rem;
    }
    
    .profile-header {
        padding: 2rem 0;
    }
    
    .profile-logo {
        width: 80px;
        height: 80px;
    }
    
    footer .col-lg-3,
    footer .col-lg-2,
    footer .col-lg-4 {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .chat-message {
        max-width: 85%;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .stats-card h3 {
        font-size: 2rem;
    }
}
