/* Scientific Conference Template CSS */
/* ChemBio Conference - Main Stylesheet */

:root {
    --primary-color: #1e293b;
    --secondary-color: #475569;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --light-bg: #f8fafc;
    --dark-text: #1e293b;
    --science-gradient: linear-gradient(135deg, #1e293b 0%, #475569 100%);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #334155;
    border-color: #334155;
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-light-custom {
    background-color: var(--light-bg) !important;
}

.section-padding {
    padding: 4rem 0;
}

.hero-section {
    background: var(--science-gradient);
    color: white;
    padding: 6rem 0;
}

.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.footer {
    background-color: #0f172a;
    color: white;
}

.footer a {
    color: #cbd5e1;
    text-decoration: none;
}

.footer a:hover {
    color: white;
}

.science-icon {
    color: var(--secondary-color);
}

.conference-badge {
    background: var(--science-gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Timeline Styles */
.timeline {
    position: relative;
}

.timeline-item {
    position: relative;
}

.timeline-item:not(:last-child):before {
    content: '';
    position: absolute;
    left: 20px;
    top: 50px;
    width: 2px;
    height: calc(100% - 30px);
    background-color: #e2e8f0;
}

/* Custom Alert Styles */
.alert-light {
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--dark-text);
}

/* Navigation icon visibility */
@media (min-width: 992px) {
    .navbar-nav .nav-link i {
        display: none;
    }
    
    .navbar-nav .nav-link {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* Keep icons visible on mobile and tablet */
@media (max-width: 991.98px) {
    .navbar-nav .nav-link i {
        display: inline-block;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 0;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
}

/* Animation enhancements */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom button styles */
.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-success:hover {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

/* Form styles */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(30, 41, 59, 0.25);
}

/* Card enhancements */
.card {
    border-radius: 10px;
    overflow: hidden;
}

.card-img-top {
    transition: transform 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

/* Badge styles */
.badge {
    font-weight: 500;
    padding: 0.5rem 0.75rem;
}

/* Navbar enhancements */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(30, 41, 59, 0.95) !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #cbd5e1 !important;
}

/* Footer enhancements */
.footer .social-links a {
    transition: transform 0.3s ease;
}

.footer .social-links a:hover {
    transform: translateY(-2px);
}

/* Flag icons for language switcher */
.flag-icon {
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    vertical-align: middle;
}

.flag-icon:hover {
    transform: scale(1.05);
}

.dropdown-item .flag-icon {
    margin-right: 8px;
}

.navbar .flag-icon {
    margin-right: 4px;
}

/* Scientific Topics Cards */
.scientific-topic-card {
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.scientific-topic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
    border-color: #cbd5e1;
}

.scientific-topic-card .topic-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.scientific-topic-card:hover .topic-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}

.scientific-topic-card .card-title {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    min-height: 2.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.scientific-topic-card .text-muted {
    font-size: 0.9rem;
    line-height: 1.4;
}

/* About Page Topic Cards */
.divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 2px;
}

.topic-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    padding: 0;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.topic-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.topic-card:hover::before {
    transform: translateX(0);
}

.topic-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(30, 41, 59, 0.15);
    border-color: #cbd5e1;
}

.topic-card-body {
    padding: 2rem;
}

.topic-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.topic-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    background: linear-gradient(135deg, var(--primary-color) 0%, #475569 100%);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.topic-icon-wrapper.green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.topic-icon-wrapper.blue {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.topic-icon-wrapper.orange {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.topic-icon-wrapper.purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.topic-icon-wrapper.gray {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

.topic-icon-wrapper.teal {
    background: linear-gradient(135deg, #14b8a6 0%, #0f766e 100%);
}

.topic-icon-wrapper.yellow {
    background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
}

.topic-icon-wrapper.cyan {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

.topic-icon-wrapper.red {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.topic-card:hover .topic-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.topic-title {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.3;
}

.topic-description {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.conference-focus-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, #475569 100%);
    border-radius: 15px;
    padding: 1.5rem 2rem;
    box-shadow: 0 8px 25px rgba(30, 41, 59, 0.2);
}

.focus-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    text-align: center;
}

.focus-label {
    color: #cbd5e1;
    font-weight: 600;
    font-size: 1rem;
}

.focus-text {
    color: white;
    font-weight: 500;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .topic-header {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 0.75rem;
    }
    
    .topic-card-body {
        padding: 1.5rem;
    }
    
    .focus-content {
        flex-direction: column;
        gap: 0.25rem;
    }
}
