/* IT Professional Network - Custom Styles */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --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);
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    padding-top: 76px; /* Account for fixed navbar */
}

.min-vh-100 {
    min-height: calc(100vh - 76px);
}

/* Navbar Styles */
.navbar {
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-size: 1.5rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem 0;
}

.hero-icon {
    font-size: 15rem;
    opacity: 0.1;
    position: relative;
    z-index: 1;
}

.floating-cards {
    position: relative;
    z-index: 2;
    margin-top: -10rem;
}

.floating-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem;
    animation: float 3s ease-in-out infinite;
    font-weight: 600;
    color: var(--primary-color);
}

.floating-card:nth-child(1) { animation-delay: 0s; }
.floating-card:nth-child(2) { animation-delay: 1s; }
.floating-card:nth-child(3) { animation-delay: 2s; }

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.floating-card i {
    font-size: 1.5rem;
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.feature-card h4 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--secondary-color);
    margin-bottom: 0;
}

/* Stat Cards */
.stat-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e9ecef;
}

.stat-card h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* About Section */
.about-image {
    text-align: center;
    font-size: 20rem;
    color: var(--primary-color);
    opacity: 0.1;
}

/* Modal Styles */
.modal-content {
    border-radius: 1rem;
    border: none;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    background: var(--gradient-primary);
    color: white;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    border-bottom: none;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Dashboard Styles */
.dashboard-header {
    background: var(--gradient-primary);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.dashboard-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e9ecef;
    margin-bottom: 1.5rem;
}

.dashboard-card h5 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Post Styles */
.post-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e9ecef;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.post-card:hover {
    box-shadow: var(--shadow-md);
}

.post-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.post-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    margin-right: 1rem;
}

.post-meta {
    flex: 1;
}

.post-author {
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
}

.post-time {
    color: var(--secondary-color);
    font-size: 0.875rem;
    margin: 0;
}

.post-content {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.post-actions {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.post-action {
    background: none;
    border: none;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.post-action:hover {
    background: var(--light-color);
    color: var(--primary-color);
}

.post-action.active {
    color: var(--primary-color);
}

/* Profile Styles */
.profile-header {
    background: var(--gradient-primary);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 3rem;
    border: 4px solid rgba(255, 255, 255, 0.3);
}

.profile-name {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.profile-role {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0;
}

/* Navigation Tabs */
.nav-tabs {
    border-bottom: 2px solid #e9ecef;
}

.nav-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--secondary-color);
    font-weight: 500;
    padding: 1rem 1.5rem;
}

.nav-tabs .nav-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.nav-tabs .nav-link.active {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: none;
}

/* Job Card Styles */
.job-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e9ecef;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.job-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.job-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.job-company {
    color: var(--dark-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--secondary-color);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.job-type {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Event Card Styles */
.event-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e9ecef;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
}

.event-date {
    background: var(--light-color);
    border-radius: 0.5rem;
    padding: 0.5rem;
    text-align: center;
    width: 80px;
    float: right;
    margin-left: 1rem;
}

.event-day {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1;
}

.event-month {
    font-size: 0.75rem;
    color: var(--secondary-color);
    text-transform: uppercase;
}

/* Connection Card Styles */
.connection-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e9ecef;
    text-align: center;
    margin-bottom: 1.5rem;
}

.connection-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

/* Notification Styles */
.notification-item {
    background: white;
    border-radius: 0.75rem;
    padding: 1rem;
    border: 1px solid #e9ecef;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.notification-item:hover {
    box-shadow: var(--shadow-sm);
}

.notification-item.unread {
    border-left: 4px solid var(--primary-color);
    background: #f8f9ff;
}

/* Alert Styles */
.alert {
    border-radius: 0.75rem;
    border: none;
    box-shadow: var(--shadow-sm);
}

/* Button Styles */
.btn {
    border-radius: 0.75rem;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }
    
    .hero-icon {
        font-size: 8rem;
    }
    
    .floating-cards {
        margin-top: -5rem;
    }
    
    .floating-card {
        display: block;
        text-align: center;
        margin: 0.5rem auto;
        max-width: 200px;
    }
    
    .about-image {
        font-size: 10rem;
        margin-top: 2rem;
    }
    
    .job-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .event-date {
        float: none;
        margin: 0 0 1rem 0;
        width: 60px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #4dabf7;
        --dark-color: #f8f9fa;
        --light-color: #212529;
    }
    
    body {
        background: #1a1a1a;
        color: var(--dark-color);
    }
    
    .feature-card,
    .dashboard-card,
    .post-card,
    .job-card,
    .event-card,
    .connection-card,
    .notification-item {
        background: #2d2d2d;
        border-color: #404040;
        color: var(--dark-color);
    }
    
    .modal-content {
        background: #2d2d2d;
        color: var(--dark-color);
    }
}

/* Print styles */
@media print {
    .navbar,
    .modal,
    .btn,
    .post-actions {
        display: none !important;
    }
    
    body {
        padding-top: 0;
    }
    
    .feature-card,
    .post-card,
    .job-card {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
}
