/* ================================================
   Eventify - Event Directory Platform Styles
   ================================================ */

:root {
    --primary-blue: #0066cc;
    --primary-blue-dark: #004499;
    --secondary-orange: #ff6b35;
    --success-green: #28a745;
    --warning-yellow: #ffc107;
    --danger-red: #dc3545;
    --light-gray: #f8f9fa;
    --medium-gray: #6c757d;
    --dark-gray: #343a40;
    --white: #ffffff;
    --black: #000000;
    --border-light: #e9ecef;
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    --gradient-primary: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary-orange) 0%, #e55a2b 100%);
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
}

/* Company Cards */
.company-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.company-card:hover {
    background-color: #e3f2fd !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.company-logo {
    width: 120px;
    height: 120px;
    object-fit: cover;
}

/* Timeline circles */
.timeline-circle {
    width: 50px;
    height: 50px;
}

/* Icon circle */
.icon-circle {
    width: 80px;
    height: 80px;
}

/* Avatar utility classes - use instead of inline styles */
.avatar-lg {
    width: 100px;
    height: 100px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.avatar-md {
    width: 80px;
    height: 80px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.avatar-sm {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Password strength bar */
.password-strength .progress {
    height: 5px;
}

.password-strength-bar {
    width: 0%;
}

/* Blurred content */
.blurred-content {
    filter: blur(5px);
    opacity: 0.6;
}

/* Login Page Specific Styles */
.demo-credentials-alert {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%) !important;
    border: none !important;
}

.demo-icon-circle {
    width: 40px;
    height: 40px;
    min-width: 40px;
}

.demo-input-readonly {
    background-color: #f8f9fa !important;
}

.premium-login-btn {
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%) !important;
    border: none !important;
    padding: 1rem !important;
}

.copy-clickable {
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-clickable:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--gradient-secondary);
    border: none;
    color: var(--white);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-outline-primary {
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
}

/* Navigation Styles */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-blue);
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--dark-gray);
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-blue);
}

.navbar-nav .nav-link.active {
    color: var(--primary-blue);
    font-weight: 600;
}

/* Dark header overrides for improved contrast when using gradient background */
.navbar.bg-primary-custom .navbar-brand {
    color: var(--white) !important;
}

.navbar.bg-primary-custom .navbar-nav .nav-link {
    color: rgba(255,255,255,0.92) !important;
}

.navbar.bg-primary-custom .navbar-nav .nav-link:hover {
    color: var(--white) !important;
}

.navbar.bg-primary-custom .navbar-nav .nav-link.active {
    color: var(--white) !important;
    font-weight: 700;
}

.navbar.bg-primary-custom .dropdown-menu {
    /* Keep dropdown readable by using a light background */
    background: var(--white);
}

.navbar.bg-primary-custom .dropdown-item {
    color: var(--dark-gray);
}

.navbar.bg-primary-custom .btn-outline-light {
    border-color: rgba(255,255,255,0.35);
    color: rgba(255,255,255,0.95);
}

/* Hero Section */
.hero-section {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 6rem 0;
    margin-bottom: 0;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* Card Styles */
.card-custom {
    border: none;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card-custom:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-custom .card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Event Card Styles */
.event-card {
    border: none;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.event-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.event-card .card-img-top {
    height: 220px;
    object-fit: cover;
}

.event-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--secondary-orange);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.event-date {
    background: var(--primary-blue);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.5rem;
}

/* Category Tiles */
.category-tile {
    background: var(--light-gray);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    color: var(--dark-gray);
}

.category-tile:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Search and Filters */
.search-section {
    background: var(--light-gray);
    padding: 3rem 0;
}

.search-box {
    border-radius: 0.75rem;
    border: 2px solid var(--border-light);
    padding: 0.75rem 1.25rem;
    font-size: 1.1rem;
}

.search-box:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

.filter-sidebar {
    background: var(--white);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.filter-group {
    margin-bottom: 2rem;
}

.filter-title {
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Pagination */
.pagination .page-link {
    color: var(--primary-blue);
    border-radius: 0.5rem;
    margin: 0 0.2rem;
    border: 1px solid var(--border-light);
}

.pagination .page-link:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

/* Dashboard Styles */
.dashboard-card {
    background: var(--white);
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    padding: 2rem;
    margin-bottom: 2rem;
    border: none;
}

.dashboard-stat {
    text-align: center;
    padding: 1.5rem;
}

.dashboard-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    display: block;
}

.dashboard-stat-label {
    color: var(--medium-gray);
    font-weight: 500;
    margin-top: 0.5rem;
}

/* Pricing Cards */
.pricing-card {
    border: 2px solid var(--border-light);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    background: var(--white);
    margin-bottom: 2rem;
}

.pricing-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border-color: var(--secondary-orange);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, rgba(255, 107, 53, 0.1) 100%);
}

.pricing-price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin: 1rem 0;
}

.pricing-currency {
    font-size: 1.5rem;
    vertical-align: top;
}

.pricing-period {
    font-size: 1rem;
    color: var(--medium-gray);
}

/* Form Styles */
.form-control-custom {
    border-radius: 0.75rem;
    border: 2px solid var(--border-light);
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
}

.form-control-custom:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

.form-label-custom {
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.75rem;
}

/* Modal Styles */
.modal-content {
    border-radius: 1rem;
    border: none;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    border-bottom: 1px solid var(--border-light);
    border-radius: 1rem 1rem 0 0;
}

.modal-footer {
    border-top: 1px solid var(--border-light);
    border-radius: 0 0 1rem 1rem;
}

/* Alerts and Notifications */
.alert-custom {
    border: none;
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.alert-info-custom {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1) 0%, rgba(0, 102, 204, 0.05) 100%);
    color: var(--primary-blue);
    border-left: 4px solid var(--primary-blue);
}

/* Admin Styles */
.admin-sidebar {
    background: var(--dark-gray);
    color: var(--white);
    min-height: 100vh;
    padding: 2rem 0;
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    margin: 0.2rem 0;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: var(--primary-blue);
    color: var(--white);
}

/* Utility Classes */
.text-primary-custom {
    color: var(--primary-blue) !important;
}

.bg-primary-custom {
    background: var(--gradient-primary) !important;
}

.bg-light-custom {
    background: var(--light-gray) !important;
}

.border-radius-custom {
    border-radius: 1rem !important;
}

.shadow-custom {
    box-shadow: var(--shadow-md) !important;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner-custom {
    width: 3rem;
    height: 3rem;
    border: 0.3em solid transparent;
    border-top: 0.3em solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .category-tile {
        margin-bottom: 1rem;
    }
    
    .filter-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        height: 100vh;
        width: 80%;
        z-index: 1050;
        transition: left 0.3s ease;
    }
    
    .filter-sidebar.show {
        left: 0;
    }
    
    .dashboard-stat {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-outline-primary {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}