/* Custom Styles for UniEx Expo Platform */

:root {
    --primary-color: #E91E7E;
    --primary-dark: #C91867;
    --secondary-color: #000000;
    --accent-color: #FF4B9D;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --text-muted: #6c757d;
    --border-color: #e0e0e0;
    --bg-light: #f5f5f5;
}

/* General Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Hover Effects */
.hover-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Company Logo in Cards */
.company-logo {
    height: 200px;
    object-fit: contain;
    padding: 1rem;
    background-color: #fff;
}

/* Navigation */
.navbar {
    border-bottom: 1px solid var(--border-color);
    background-color: #ffffff !important;
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color) !important;
}

.navbar-brand:hover {
    color: var(--primary-dark) !important;
}

.nav-link {
    color: var(--secondary-color) !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.navbar .btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Buttons */
.btn {
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(233, 30, 126, 0.3);
}

/* Cards */
.card {
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 16px rgba(233, 30, 126, 0.15);
    border-color: var(--primary-color);
}

.card-header {
    font-weight: 600;
    border-bottom: none;
}

/* Forms */
.form-control, .form-select {
    border-radius: 0.375rem;
    border: 1px solid #ced4da;
    padding: 0.625rem 0.875rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(233, 30, 126, 0.15);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #495057;
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.5em 0.75em;
}

/* Hero Section */
.bg-primary {
    background: linear-gradient(135deg, #E91E7E 0%, #FF4B9D 100%);
}

.hero-section {
    background-color: #ffffff;
    min-height: 500px;
}

.hero-section h1 {
    color: #000000;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero-section p.text-muted {
    color: #6c757d !important;
    font-size: 1rem;
}

.hero-search-form .form-control,
.hero-search-form .form-select {
    border: 1px solid #e0e0e0;
    padding: 0.75rem 1.25rem;
}

.hero-search-form .input-group-text {
    border: 1px solid #e0e0e0;
}

.hero-search-form .btn-primary {
    background: linear-gradient(135deg, #E91E7E 0%, #FF4B9D 100%);
    border: none;
    font-weight: 600;
    font-size: 1.1rem;
}

.hero-search-form .btn-primary:hover {
    background: linear-gradient(135deg, #C91867 0%, #E91E7E 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(233, 30, 126, 0.3);
}

.hero-illustration {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.hero {
    background: linear-gradient(135deg, #E91E7E 0%, #FF4B9D 100%);
    color: white;
    padding: 4rem 0;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* Feature Icons */
.feature-icon {
    width: 80px;
    height: 80px;
    font-size: 2rem;
}

/* Footer */
footer {
    margin-top: auto;
    background-color: #ffffff !important;
}

footer .footer-link {
    transition: color 0.3s ease;
}

footer .footer-link:hover {
    color: var(--primary-color) !important;
}

footer h6 {
    color: #000000;
    font-weight: 600;
    font-size: 1rem;
}

footer hr {
    border-color: #e0e0e0;
}

/* Mobile App Section */
.app-section {
    background: linear-gradient(135deg, #E91E7E 0%, #FF4B9D 100%);
}

.app-section h2 {
    font-size: 2rem;
    font-weight: 700;
}

.app-section p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Statistics Section */
.stats-section {
    background-color: #2d2d2d;
}

.stats-section .stat-item {
    padding: 1rem;
}

.stats-section h2 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stats-section p {
    color: #ccc;
    font-size: 1.1rem;
}

/* Pagination */
.pagination {
    margin-top: 2rem;
}

.page-link {
    color: var(--primary-color);
    border-color: #dee2e6;
}

.page-link:hover {
    color: var(--primary-dark);
    background-color: rgba(233, 30, 126, 0.1);
    border-color: var(--primary-color);
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Chat Messages */
#chatMessages {
    background-color: #f8f9fa;
}

#chatMessages .bg-primary {
    word-wrap: break-word;
}

/* Article Content */
.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .company-logo {
        height: 150px;
    }
}

/* Loading Spinner */
.spinner-border {
    width: 1rem;
    height: 1rem;
    border-width: 0.15rem;
}

/* Alert Animations */
.alert {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Image Hover Effect */
img.card-img-top {
    transition: transform 0.3s ease;
}

.card:hover img.card-img-top {
    transform: scale(1.05);
}

/* Text Truncate */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Print Styles */
@media print {
    .navbar, footer, .btn, .pagination {
        display: none !important;
    }
}

/* Accessibility */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus Styles */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* List Group Hover */
.list-group-item-action:hover {
    background-color: #f8f9fa;
}

.list-group-item-action.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Table Styles */
.table {
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
}

/* Language Switcher */
.nav-link[href*="lang="] {
    font-weight: 600;
    background-color: rgba(13, 110, 253, 0.1);
    border-radius: 0.375rem;
}

/* Dropdown Menu */
.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

/* Form Validation */
.is-invalid {
    border-color: var(--danger-color) !important;
}

.is-valid {
    border-color: var(--success-color) !important;
}

.invalid-feedback, .valid-feedback {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Shadows */
.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

/* ========================================
   Mobile Responsive Styles
======================================== */

/* Mobile Typography */
@media (max-width: 767.98px) {
    h1 {
        font-size: 1.75rem !important;
    }
    
    h2 {
        font-size: 1.5rem !important;
    }
    
    h3 {
        font-size: 1.25rem !important;
    }
    
    h4 {
        font-size: 1.1rem !important;
    }
    
    .display-1, .display-2, .display-3, .display-4 {
        font-size: 2rem !important;
    }
    
    /* Mobile Buttons */
    .btn-lg {
        padding: 0.75rem 1.25rem !important;
        font-size: 1rem !important;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Mobile Forms */
    .form-control-lg {
        padding: 0.75rem 1rem !important;
        font-size: 1rem !important;
    }
    
    .form-control {
        font-size: 0.95rem;
    }
    
    /* Mobile Cards */
    .card {
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1rem !important;
    }
    
    .card-title {
        font-size: 1.1rem !important;
    }
    
    /* Mobile Spacing */
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .mb-5 {
        margin-bottom: 2rem !important;
    }
    
    .mt-5 {
        margin-top: 2rem !important;
    }
    
    /* Mobile Hero Section */
    .hero-section {
        min-height: auto !important;
        padding: 2rem 0 !important;
    }
    
    .hero-illustration img {
        max-width: 280px !important;
        margin-top: 1.5rem;
    }
    
    /* Mobile Stats */
    .stats-section {
        padding: 2rem 0 !important;
    }
    
    .stats-section h3 {
        font-size: 1rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .stat-item {
        margin-bottom: 1rem;
    }
    
    /* Mobile Contact CTA */
    .rounded-4 {
        padding: 2rem 1.5rem !important;
        text-align: center;
    }
    
    .rounded-4 .btn {
        width: 100%;
        margin-top: 1rem;
    }
    
    /* Mobile Company Cards */
    .company-logo {
        height: 150px !important;
    }
    
    /* Mobile Profile Image */
    .rounded-circle[style*="150px"] {
        width: 100px !important;
        height: 100px !important;
    }
    
    .rounded-circle[style*="150px"] + form .form-control {
        font-size: 0.875rem;
    }
    
    /* Mobile Navigation Improvements */
    .navbar-brand img {
        height: 32px !important;
    }
    
    .navbar-brand span {
        font-size: 1.25rem !important;
    }
    
    .nav-link {
        font-size: 0.95rem;
    }
    
    .badge {
        font-size: 0.7rem;
        padding: 0.25em 0.5em;
    }
}

/* Tablet Responsive */
@media (min-width: 768px) and (max-width: 991.98px) {
    h1 {
        font-size: 2.25rem !important;
    }
    
    h2 {
        font-size: 1.875rem !important;
    }
    
    .display-3 {
        font-size: 3rem !important;
    }
    
    .hero-section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
}

/* Small Mobile (Portrait) */
@media (max-width: 575.98px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .row {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }
    
    .row > * {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .input-group-text {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .rounded-pill {
        font-size: 0.9rem !important;
    }
    
    /* Ultra compact for small screens */
    .btn-lg {
        padding: 0.625rem 1rem !important;
    }
}

/* Landscape Mobile */
@media (max-width: 767.98px) and (orientation: landscape) {
    .hero-section {
        min-height: auto !important;
        padding: 1.5rem 0 !important;
    }
    
    .hero-illustration {
        display: none;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn, .nav-link, .dropdown-item {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .form-control, .form-select {
        min-height: 44px;
    }
}
