/* ===== OnlineConferences.net - Custom Stylesheet ===== */

/* --- CSS Variables --- */
:root {
    --primary: #2563EB;
    --primary-dark: #1D4ED8;
    --primary-light: #DBEAFE;
    --secondary: #1E293B;
    --accent: #F59E0B;
    --accent-dark: #D97706;
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    --info: #06B6D4;
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;
    --white: #FFFFFF;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.2s ease;
}

/* --- Base --- */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--gray-800);
    background: var(--gray-50);
    line-height: 1.6;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}
a:hover {
    color: var(--primary-dark);
}

/* --- Navbar --- */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 0.75rem 0;
    z-index: 1030;
}
.navbar-brand {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--secondary) !important;
}
.navbar-brand span {
    color: var(--primary);
}
.navbar .nav-link {
    color: var(--gray-600) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius);
    transition: var(--transition);
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--primary) !important;
    background: var(--primary-light);
}
.btn-submit-nav {
    background: var(--primary);
    color: var(--white) !important;
    font-weight: 600;
    padding: 0.5rem 1.25rem !important;
    border-radius: var(--radius);
    border: none;
}
.btn-submit-nav:hover {
    background: var(--primary-dark);
    color: var(--white) !important;
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 4rem 0 3.5rem;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 1;
}
.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
}
.hero p {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 600px;
    position: relative;
}
.hero-search {
    position: relative;
    max-width: 600px;
    margin-top: 2rem;
}
.hero-search input {
    width: 100%;
    padding: 1rem 1.25rem;
    padding-right: 120px;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    box-shadow: var(--shadow-lg);
}
.hero-search input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3), var(--shadow-lg);
}
.hero-search button {
    position: absolute;
    right: 6px;
    top: 6px;
    bottom: 6px;
    padding: 0 1.5rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.hero-search button:hover {
    background: var(--primary-dark);
}

/* --- Stats Bar --- */
.stats-bar {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    position: relative;
}
.stat-item {
    text-align: center;
}
.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
}
.stat-label {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* --- Section Headers --- */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}
.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 0;
}
.section-header a {
    font-weight: 500;
    font-size: 0.95rem;
}

/* --- Conference Cards --- */
.conf-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.conf-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}
.conf-card-img {
    height: 180px;
    background: linear-gradient(135deg, var(--primary-light), var(--gray-100));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.conf-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.conf-card-img .no-image {
    font-size: 3rem;
    color: var(--gray-300);
}
.conf-card-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 6px;
}
.conf-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.conf-card-category {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}
.conf-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.conf-card-title a {
    color: inherit;
}
.conf-card-title a:hover {
    color: var(--primary);
}
.conf-card-meta {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.875rem;
    color: var(--gray-500);
}
.conf-card-meta i {
    width: 18px;
    color: var(--gray-400);
}
.conf-card-featured {
    border: 2px solid var(--accent);
}

/* --- Category Grid --- */
.cat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: block;
    color: var(--gray-700);
}
.cat-card:hover {
    box-shadow: var(--shadow-md);
    color: var(--primary);
    transform: translateY(-2px);
}
.cat-card i {
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: block;
}
.cat-card .cat-name {
    font-weight: 600;
    font-size: 0.9rem;
    display: block;
}
.cat-card .cat-count {
    font-size: 0.8rem;
    color: var(--gray-400);
    margin-top: 0.25rem;
}

/* --- Promo Banner --- */
.promo-banner {
    background: linear-gradient(135deg, #1e40af 0%, #7c3aed 100%);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
}
.promo-banner::after {
    content: '';
    position: absolute;
    right: -50px;
    top: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}
.promo-banner h3 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.promo-banner p {
    opacity: 0.9;
    margin-bottom: 1.25rem;
}
.btn-promo {
    background: var(--white);
    color: var(--primary-dark);
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius);
    display: inline-block;
    transition: var(--transition);
}
.btn-promo:hover {
    background: var(--gray-100);
    color: var(--primary-dark);
    transform: translateY(-1px);
}

/* --- Filter Sidebar --- */
.filter-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.filter-card h5 {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}
.filter-card .form-check {
    margin-bottom: 0.5rem;
}
.filter-card .form-check-label {
    font-size: 0.9rem;
    color: var(--gray-600);
}

/* --- Conference Detail --- */
.conf-detail-header {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 2rem;
}
.conf-detail-img {
    height: 300px;
    background: linear-gradient(135deg, var(--primary-light), var(--gray-100));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.conf-detail-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.conf-detail-body {
    padding: 2rem;
}
.conf-detail-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 1rem;
}
.conf-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.conf-detail-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-600);
    font-size: 0.95rem;
}
.conf-detail-meta .meta-item i {
    color: var(--primary);
    width: 18px;
}

/* --- Info Card (sidebar) --- */
.info-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.info-card h5 {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--secondary);
    border-bottom: 2px solid var(--gray-100);
    padding-bottom: 0.75rem;
}
.info-card .info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}
.info-card .info-label {
    color: var(--gray-500);
}
.info-card .info-value {
    font-weight: 600;
    color: var(--secondary);
}

/* --- Forms --- */
.form-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 2rem;
}
.form-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}
.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* --- Buttons --- */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}
.btn-accent {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}
.btn-accent:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: var(--white);
}

/* --- Auth Pages --- */
.auth-wrapper {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
}
.auth-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    width: 100%;
    max-width: 440px;
}
.auth-card h2 {
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.5rem;
    text-align: center;
}
.auth-card .auth-subtitle {
    color: var(--gray-500);
    text-align: center;
    margin-bottom: 2rem;
}

/* --- Footer --- */
.site-footer {
    background: var(--secondary);
    color: var(--gray-300);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}
.site-footer h5 {
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1rem;
}
.site-footer a {
    color: var(--gray-400);
    transition: var(--transition);
}
.site-footer a:hover {
    color: var(--white);
}
.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.site-footer ul li {
    margin-bottom: 0.5rem;
}
.footer-bottom {
    border-top: 1px solid var(--gray-700);
    margin-top: 2rem;
    padding-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* --- My Conferences / Dashboard --- */
.dash-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 1.5rem;
}
.table-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.table-card .table {
    margin: 0;
}
.table-card .table th {
    background: var(--gray-50);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-500);
    border-bottom: 2px solid var(--gray-200);
}

/* --- Empty State --- */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}
.empty-state i {
    font-size: 3.5rem;
    color: var(--gray-300);
    margin-bottom: 1rem;
}
.empty-state h4 {
    color: var(--gray-600);
    font-weight: 600;
}
.empty-state p {
    color: var(--gray-400);
    max-width: 400px;
    margin: 0.5rem auto 1.5rem;
}

/* --- Badges --- */
.badge {
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
    border-radius: 6px;
}

/* --- Breadcrumb --- */
.breadcrumb {
    background: none;
    padding: 0;
    margin-bottom: 1.5rem;
}
.breadcrumb-item a {
    color: var(--gray-500);
}
.breadcrumb-item.active {
    color: var(--gray-700);
}

/* --- Admin Panel --- */
.admin-sidebar {
    background: var(--secondary);
    min-height: 100vh;
    padding: 1.5rem 0;
    position: fixed;
    width: 250px;
    overflow-y: auto;
}
.admin-sidebar .brand {
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0 1.5rem 1.5rem;
    border-bottom: 1px solid var(--gray-700);
    display: block;
}
.admin-sidebar .brand span {
    color: var(--primary);
}
.admin-sidebar .nav-item {
    margin: 2px 0;
}
.admin-sidebar .nav-link {
    color: var(--gray-400) !important;
    padding: 0.65rem 1.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
}
.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: var(--white) !important;
    background: rgba(255,255,255,0.08);
}
.admin-sidebar .nav-link i {
    width: 20px;
    text-align: center;
}
.admin-content {
    margin-left: 250px;
    padding: 2rem;
    min-height: 100vh;
}
.admin-stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.admin-stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--white);
}
.admin-stat-icon.bg-blue { background: var(--primary); }
.admin-stat-icon.bg-amber { background: var(--accent); }
.admin-stat-icon.bg-green { background: var(--success); }
.admin-stat-icon.bg-red { background: var(--danger); }
.admin-stat-info .stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    line-height: 1;
}
.admin-stat-info .stat-label {
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* --- Topic Tags --- */
.topic-tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    margin: 2px;
}

/* --- Share Buttons --- */
.share-btns {
    display: flex;
    gap: 0.5rem;
}
.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.9rem;
    transition: var(--transition);
}
.share-btn:hover { opacity: 0.85; color: var(--white); }
.share-btn.twitter { background: #1DA1F2; }
.share-btn.linkedin { background: #0077B5; }
.share-btn.facebook { background: #1877F2; }

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 1.75rem; }
    .hero { padding: 2.5rem 0 2rem; }
    .stats-bar { gap: 1rem; }
    .stat-number { font-size: 1.2rem; }
    .conf-detail-meta { flex-direction: column; gap: 0.75rem; }
    .admin-sidebar { position: relative; width: 100%; min-height: auto; }
    .admin-content { margin-left: 0; }
    .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

@media (max-width: 576px) {
    .hero-search input { padding-right: 60px; }
    .hero-search button { padding: 0 1rem; font-size: 0.85rem; }
    .auth-card { padding: 1.5rem; margin: 0 1rem; }
}
