@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
   --bg-primary: #0b0f19;
   --bg-secondary: rgba(17, 24, 39, 0.7);
   --border-color: rgba(255, 255, 255, 0.08);
   --border-focus: rgba(99, 102, 241, 0.4);
   
   --text-primary: #f3f4f6;
   --text-secondary: #9ca3af;
   --text-muted: #6b7280;
   
   --accent-primary: #6366f1; /* Indigo */
   --accent-primary-glow: rgba(99, 102, 241, 0.15);
   --accent-secondary: #ec4899; /* Pink/Magenta */
   --accent-secondary-glow: rgba(236, 72, 153, 0.15);
   
   --accent-web: #3b82f6; /* Blue */
   --accent-pdf: #ef4444; /* Red */
   --accent-pptx: #f97316; /* Orange */
   
   --glass-bg: rgba(15, 23, 42, 0.55);
   --glass-border: rgba(255, 255, 255, 0.06);
   --card-bg: rgba(30, 41, 59, 0.4);
   --card-hover-bg: rgba(30, 41, 59, 0.75);
}

[data-theme="light"] {
   --bg-primary: #f3f4f6;
   --bg-secondary: rgba(243, 244, 246, 0.7);
   --border-color: rgba(0, 0, 0, 0.08);
   --border-focus: rgba(99, 102, 241, 0.6);
   
   --text-primary: #111827;
   --text-secondary: #4b5563;
   --text-muted: #9ca3af;
   
   --glass-bg: rgba(255, 255, 255, 0.75);
   --glass-border: rgba(0, 0, 0, 0.08);
   --card-bg: rgba(255, 255, 255, 0.6);
   --card-hover-bg: rgba(255, 255, 255, 0.95);
}

[data-theme="light"] body::before {
   background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.4) 0%, rgba(243, 244, 246, 0.95) 100%);
}

[data-theme="light"] .overlay {
   opacity: 0.12;
}

[data-theme="light"] .logo h1 {
   background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
}

[data-theme="light"] .search-input {
   background: rgba(255, 255, 255, 0.8);
   color: var(--text-primary);
}

[data-theme="light"] .search-input:focus {
   background: #ffffff;
}

[data-theme="light"] .tabs-container {
   background: rgba(255, 255, 255, 0.4);
}

[data-theme="light"] .icon-wrapper {
   background: rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .lecture-card:hover .icon-wrapper {
   background: rgba(255, 255, 255, 1);
}

* {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
   text-decoration: none; 
   list-style: none;
   font-family: 'Outfit', 'Poppins', sans-serif;
}

body {
   background-color: var(--bg-primary);
   color: var(--text-primary);
   min-height: 100vh;
   overflow-x: hidden;
   position: relative;
}

/* Background image overlay */
.overlay {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background-image: url('./images/coding-club-hero.jpg');
   background-size: cover;
   background-position: center;
   opacity: 0.25;
   filter: blur(4px);
   z-index: -2;
}

body::before {
   content: '';
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.3) 0%, rgba(11, 15, 25, 0.95) 100%);
   z-index: -1;
}

.container {
   max-width: 1300px;
   width: 100%;
   min-height: 100vh;
   margin: 0 auto;
   padding: 40px 20px;
   display: flex;
   align-items: center;
   justify-content: center;
}

/* Dashboard Panel styling */
.dashboard-panel {
   width: 100%;
   background: var(--glass-bg);
   backdrop-filter: blur(24px);
   -webkit-backdrop-filter: blur(24px);
   border: 1px solid var(--glass-border);
   border-radius: 24px;
   padding: 30px;
   box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
   display: flex;
   flex-direction: column;
   gap: 30px;
}

/* Header styling */
.header {
   display: flex; 
   justify-content: space-between; 
   align-items: center;
   padding-bottom: 20px;
   border-bottom: 1px solid var(--border-color);
}

.logo {
   display: flex; 
   align-items: center; 
   gap: 15px;
   transition: transform 0.2s ease;
}

.logo:hover {
   transform: translateY(-2px);
}

.logo img {
   height: 48px;
   width: 48px;
   border-radius: 12px;
   border: 2px solid var(--accent-primary);
   box-shadow: 0 0 15px var(--accent-primary-glow);
}

.logo h1 {
   font-size: 28px;
   font-weight: 800;
   background: linear-gradient(135deg, #a5b4fc 0%, var(--accent-secondary) 100%);
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
   letter-spacing: -0.5px;
}

.btn-primary {
   display: inline-flex;
   align-items: center;
   gap: 8px;
   background: linear-gradient(135deg, var(--accent-primary) 0%, #4f46e5 100%);
   color: #ffffff;
   padding: 10px 20px;
   border-radius: 12px;
   font-weight: 600;
   font-size: 14px;
   transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
   box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
   border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
   transform: translateY(-2px);
   box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
   filter: brightness(1.1);
}

.btn-icon {
   width: 18px;
   height: 18px;
}

.header-links {
   display: flex;
   align-items: center;
   gap: 12px;
}

.btn-secondary {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   background: rgba(255, 255, 255, 0.04);
   color: var(--text-primary);
   border: 1px solid var(--glass-border);
   width: 42px;
   height: 42px;
   border-radius: 12px;
   cursor: pointer;
   transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover {
   background: rgba(255, 255, 255, 0.08);
   transform: translateY(-2px);
   border-color: var(--accent-primary);
   box-shadow: 0 0 10px var(--accent-primary-glow);
}

[data-theme="light"] .btn-secondary {
   background: rgba(0, 0, 0, 0.03);
   border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .btn-secondary:hover {
   background: rgba(0, 0, 0, 0.06);
   border-color: var(--accent-primary);
}

.sun-icon {
   display: block;
   width: 20px;
   height: 20px;
}

.moon-icon {
   display: none;
   width: 20px;
   height: 20px;
}

[data-theme="light"] .sun-icon {
   display: none;
}

[data-theme="light"] .moon-icon {
   display: block;
}

/* Dashboard Component Styles */
.menu-dashboard {
   display: flex;
   flex-direction: column;
   gap: 25px;
}

/* Search container styling */
.search-container {
   position: relative;
   width: 100%;
   max-width: 450px;
   margin: 0 auto;
}

.search-input {
   width: 100%;
   padding: 12px 20px 12px 48px;
   background: rgba(15, 23, 42, 0.6);
   border: 1px solid var(--glass-border);
   border-radius: 14px;
   color: var(--text-primary);
   font-size: 15px;
   outline: none;
   transition: all 0.3s ease;
}

.search-input:focus {
   border-color: var(--border-focus);
   background: rgba(15, 23, 42, 0.95);
   box-shadow: 0 0 0 3px var(--accent-primary-glow);
}

.search-icon {
   position: absolute;
   left: 16px;
   top: 50%;
   transform: translateY(-50%);
   width: 20px;
   height: 20px;
   color: var(--text-muted);
   pointer-events: none;
   transition: color 0.3s ease;
}

.search-input:focus + .search-icon {
   color: var(--accent-primary);
}

/* Search Results Header */
.search-results-header h3 {
   font-size: 18px;
   font-weight: 600;
   color: var(--text-secondary);
   margin-bottom: 5px;
}

.no-results {
   text-align: center;
   padding: 40px;
   color: var(--text-muted);
   font-size: 16px;
   background: rgba(15, 23, 42, 0.2);
   border-radius: 14px;
   border: 1px dashed var(--glass-border);
}

/* Tabs container styling */
.tabs-container {
   display: flex;
   flex-wrap: wrap;
   gap: 8px;
   justify-content: center;
   padding: 5px;
   background: rgba(15, 23, 42, 0.4);
   border-radius: 16px;
   border: 1px solid var(--glass-border);
}

.tab-item { 
   padding: 8px 16px;
   color: var(--text-secondary);
   font-size: 14px;
   font-weight: 600;
   cursor: pointer;
   border-radius: 12px;
   transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
   user-select: none;
}

.tab-item:hover {
   color: var(--text-primary);
   background: rgba(255, 255, 255, 0.05);
}

.tab-item.active {
   color: #ffffff;
   background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
   box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

/* Grid Layout */
.card-grid {
   display: grid;
   grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
   gap: 16px;
   opacity: 0;
   transform: translateY(10px);
   animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeInUp {
   to {
      opacity: 1;
      transform: translateY(0);
   }
}

/* Lecture Card Styling */
.card-link {
   color: inherit;
   display: block;
}

.lecture-card { 
   position: relative;
   border-radius: 16px;
   background: var(--card-bg);
   border: 1px solid var(--glass-border);
   padding: 20px;
   overflow: hidden;
   transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
   height: 100%;
}

.card-glow {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: radial-gradient(800px circle at var(--x, 0px) var(--y, 0px), rgba(255, 255, 255, 0.06), transparent 40%);
   pointer-events: none;
   opacity: 0;
   transition: opacity 0.3s ease;
}

.lecture-card:hover .card-glow {
   opacity: 1;
}

.lecture-card:hover {
   transform: translateY(-4px);
   background: var(--card-hover-bg);
   border-color: rgba(99, 102, 241, 0.3);
   box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.5), 0 0 1px 1px rgba(99, 102, 241, 0.1);
}

.card-content-wrapper {
   display: flex;
   align-items: center;
   gap: 16px;
}

.icon-wrapper {
   display: flex;
   align-items: center;
   justify-content: center;
   width: 44px;
   height: 44px;
   border-radius: 12px;
   background: rgba(15, 23, 42, 0.5);
   border: 1px solid var(--glass-border);
   flex-shrink: 0;
   transition: all 0.3s ease;
}

.lecture-card:hover .icon-wrapper {
   transform: scale(1.05);
   background: rgba(15, 23, 42, 0.8);
   border-color: rgba(99, 102, 241, 0.2);
}

.card-icon {
   width: 22px;
   height: 22px;
}

.card-details {
   display: flex;
   flex-direction: column;
   gap: 4px;
   flex-grow: 1;
   min-width: 0; /* Prevents overflow in flex item */
}

.card-type {
   font-size: 11px;
   font-weight: 700;
   text-transform: uppercase;
   letter-spacing: 0.7px;
   color: var(--text-muted);
   display: flex;
   align-items: center;
   gap: 6px;
}

.card-date-tag {
   background: rgba(255, 255, 255, 0.08);
   padding: 1px 6px;
   border-radius: 6px;
   font-size: 10px;
   text-transform: none;
   letter-spacing: 0;
   color: var(--text-secondary);
}

.card-name {
   font-size: 16px;
   font-weight: 600;
   color: var(--text-primary);
   white-space: nowrap;
   overflow: hidden;
   text-overflow: ellipsis;
   transition: color 0.2s ease;
}

.lecture-card:hover .card-name {
   color: #ffffff;
}

.arrow-wrapper {
   display: flex;
   align-items: center;
   justify-content: center;
   width: 28px;
   height: 28px;
   border-radius: 50%;
   background: transparent;
   color: var(--text-muted);
   transition: all 0.3s ease;
   flex-shrink: 0;
}

.card-arrow {
   width: 16px;
   height: 16px;
   transform: translateX(-2px);
   transition: transform 0.3s ease;
}

.lecture-card:hover .arrow-wrapper {
   background: var(--accent-primary);
   color: #ffffff;
   box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}

.lecture-card:hover .card-arrow {
   transform: translateX(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
   width: 8px;
   height: 8px;
}

::-webkit-scrollbar-track {
   background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
   background: rgba(255, 255, 255, 0.1);
   border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
   background: rgba(255, 255, 255, 0.2);
}

/* Hero Banner Section */
.hero-banner {
   display: grid;
   grid-template-columns: 1.2fr 1fr;
   gap: 40px;
   align-items: center;
   background: rgba(15, 23, 42, 0.3);
   border: 1px solid var(--border-color);
   border-radius: 20px;
   padding: 30px;
   margin-bottom: 30px;
   overflow: hidden;
}

[data-theme="light"] .hero-banner {
   background: rgba(255, 255, 255, 0.3);
}

.hero-info {
   display: flex;
   flex-direction: column;
   gap: 16px;
}

.hero-badge {
   align-self: flex-start;
   background: linear-gradient(135deg, var(--accent-primary-glow) 0%, var(--accent-secondary-glow) 100%);
   border: 1px solid rgba(99, 102, 241, 0.2);
   color: #a5b4fc;
   padding: 6px 12px;
   border-radius: 30px;
   font-size: 12px;
   font-weight: 700;
   letter-spacing: 0.5px;
   text-transform: uppercase;
}

[data-theme="light"] .hero-badge {
   color: var(--accent-primary);
   border-color: rgba(99, 102, 241, 0.2);
   background: rgba(99, 102, 241, 0.08);
}

.hero-title {
   font-size: 32px;
   font-weight: 800;
   line-height: 1.2;
   color: #ffffff;
   background: linear-gradient(135deg, #ffffff 60%, #cbd5e1 100%);
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
}

[data-theme="light"] .hero-title {
   background: linear-gradient(135deg, #0f172a 60%, #334155 100%);
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
}

.hero-desc {
   font-size: 15px;
   line-height: 1.6;
   color: var(--text-secondary);
}

.hero-stats {
   display: flex;
   gap: 25px;
   margin-top: 10px;
   padding-top: 20px;
   border-top: 1px solid var(--border-color);
}

.stat-item {
   display: flex;
   flex-direction: column;
   gap: 4px;
}

.stat-num {
   font-size: 24px;
   font-weight: 800;
   color: var(--accent-secondary);
}

.stat-lbl {
   font-size: 12px;
   font-weight: 500;
   color: var(--text-muted);
}

/* Hero Visual Browser Mock */
.hero-visual {
   display: flex;
   justify-content: center;
}

.visual-frame {
   width: 100%;
   background: #1e293b;
   border: 1px solid rgba(255, 255, 255, 0.1);
   border-radius: 12px;
   overflow: hidden;
   box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
   transition: transform 0.3s ease;
}

[data-theme="light"] .visual-frame {
   background: #e2e8f0;
   border-color: rgba(0, 0, 0, 0.08);
}

.visual-frame:hover {
   transform: scale(1.02);
}

.frame-header {
   display: flex;
   align-items: center;
   gap: 6px;
   padding: 10px 14px;
   background: rgba(15, 23, 42, 0.4);
   border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .frame-header {
   background: rgba(255, 255, 255, 0.5);
   border-bottom-color: rgba(0, 0, 0, 0.05);
}

.frame-header .dot {
   width: 10px;
   height: 10px;
   border-radius: 50%;
}

.frame-header .dot.red { background: #ef4444; }
.frame-header .dot.yellow { background: #f59e0b; }
.frame-header .dot.green { background: #10b981; }

.frame-title {
   margin: 0 auto;
   font-size: 11px;
   color: var(--text-muted);
   font-family: monospace;
   transform: translateX(-15px); /* Offset dot widths to center */
}

.hero-img {
   width: 100%;
   height: 200px;
   object-fit: cover;
   display: block;
   filter: brightness(0.9);
}

[data-theme="light"] .hero-img {
   filter: brightness(1.02);
}

/* Session Timeline styling */
.sessions-timeline {
   display: flex;
   flex-direction: column;
   gap: 30px;
}

.session-section {
   display: flex;
   flex-direction: column;
   gap: 15px;
}

.session-header {
   display: flex;
   align-items: center;
   gap: 15px;
}

.session-date-badge {
   background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
   border: 1px solid var(--glass-border);
   color: var(--text-primary);
   padding: 5px 12px;
   border-radius: 20px;
   font-size: 13px;
   font-weight: 700;
   letter-spacing: 0.5px;
   white-space: nowrap;
}

[data-theme="light"] .session-date-badge {
   background: rgba(0, 0, 0, 0.03);
   border-color: rgba(0, 0, 0, 0.08);
}

.session-divider-line {
   flex-grow: 1;
   height: 1px;
   background: linear-gradient(to right, var(--border-color) 0%, transparent 100%);
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
   .hero-banner {
      grid-template-columns: 1fr;
      gap: 30px;
      padding: 24px;
   }
   
   .hero-img {
      height: 180px;
   }
}

@media (max-width: 768px) {
   .container {
      padding: 20px 10px;
   }
   
   .dashboard-panel {
      padding: 20px;
      gap: 20px;
      border-radius: 16px;
   }
   
   .header {
      flex-direction: column;
      align-items: flex-start;
      gap: 15px;
   }
   
   .btn-primary {
      width: 100%;
      justify-content: center;
   }
   
   .logo h1 {
      font-size: 24px;
   }
   
   .card-grid {
      grid-template-columns: 1fr;
      gap: 12px;
   }
}