/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #4a90e2;
  --primary-hover: #0041a3;
  --secondary-color: #6c757d;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --light-bg: #f8f9fa;
  --white: #ffffff;
  --text-primary: #212529;
  --text-secondary: #6c757d;
  --border-color: #e9ecef;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --border-radius: 8px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --gradient-primary: linear-gradient(135deg, #0b0d23, #004e98, #00aaff);
}

/* Update body to use white background */
body {
  font-family: 'Montserrat', sans-serif !important;
  background: #ffffff;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  font-size: 14px;
  font-weight: 400;
}

/* Video Header Styles */
.video-header {
  position: relative;
  width: 100%;
  overflow: visible;
  background-color: rgba(12, 22, 49, 0.8);
}

.background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

/* Header styling */
.site-header {
  background: rgba(12, 22, 49, 0.8);
  padding: 40px 0;
  position: relative;
  z-index: 1;
  width: 100%;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Logo styling */
.logo-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-logo {
  height: 50px;
  width: 50px;
  background: #4a90e2;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-title {
  color: white;
  font-size: 24px;
  font-weight: bold;
  margin-left: 10px;
}

/* Navigation styling */
.site-navigation ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.site-navigation a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 10px 0;
  position: relative;
  transition: color 0.3s ease;
}

.site-navigation a:hover {
  color: #00aaff;
  transform: scale(1.07);
}

.site-navigation a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #00aaff;
  transition: width 0.3s ease;
}

.site-navigation a:hover::after {
  width: 100%;
}

/* CTA Button styling */
.cta-button {
  background: linear-gradient(45deg, var(--primary-color), #00aaff) !important;
  color: white !important;
  padding: 10px 20px !important;
  border-radius: 30px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3) !important;
  display: inline-block !important;
  border: none !important;
}

.cta-button:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 6px 15px rgba(0, 123, 255, 0.4) !important;
}

.site-navigation a.cta-button::after {
  display: none !important;
}

/* Mobile Navigation */
.hamburger {
  display: none;
  background: transparent;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
}

/* Hero Section with full overlay */
.hero-section {
  position: relative;
  height: 550px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
  border-radius: 0;
  overflow: hidden;
  background-image: url('https://images.unsplash.com/photo-1600880292203-757bb62b4baf?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
  background-size: cover;
  background-position: center 25%;
  background-repeat: no-repeat;
}

/* Full overlay across entire image */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-content-panel {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
}

/* Remove the text container background since we have full overlay now */
.hero-text-container {
    background: transparent;
    padding: 20px 30px;
    border-radius: 0;
    backdrop-filter: none;
}

/* Title Styling */
.hero-section h1 {
    font-size: 42px;
    font-weight: 700;
    color: white;
    margin-bottom: 25px;
    line-height: 1.2;
}

/* Subtitle styling */
.hero-subtitle {
    font-size: 22px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    font-style: italic;
    margin-bottom: 30px;
}

/* Enhanced button styling */
.get-started-btn {
    margin-top: 30px;
    padding: 18px 45px;
    background: linear-gradient(45deg, #4a90e2, #357abd);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 8px 25px rgba(74, 144, 226, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.get-started-btn:hover {
    background: linear-gradient(45deg, #357abd, #2c5f94);
    transform: translateY(-3px);
    box-shadow: 
        0 12px 35px rgba(74, 144, 226, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.2);
}

.accent-line {
  height: 4px;
  width: 100px;
  background: linear-gradient(90deg, transparent, #00aaff, transparent);
  margin: 0 auto 30px;
  position: relative;
  border-radius: 2px;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.main-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  background: transparent;
  min-height: calc(100vh - 200px);
  color: var(--text-primary);
}

/* Header */
.header {
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  margin-bottom: 32px;
}

.header h1 {
  color: var(--text-primary);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 4px;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 400;
}

/* Navigation Tabs */
.nav-container {
  margin-bottom: 32px;
}

.tabs {
  display: flex;
  gap: 2px;
  background: var(--border-color);
  border-radius: var(--border-radius);
  padding: 4px;
}

.tab-link {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

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

.tab-link.active {
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}

/* Tab Icons */
.tab-icon {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  position: relative;
}

.facebook-icon {
  background: linear-gradient(135deg, #1877f2, #42a5f5);
}

.linkedin-icon {
  background: linear-gradient(135deg, #0077b5, #42a5f5);
}

.twitter-icon {
  background: linear-gradient(135deg, #1da1f2, #42a5f5);
}

.tab-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: var(--white);
  border-radius: 2px;
}

/* Content Areas */
.tab-content {
  display: none;
  animation: fadeInUp 0.3s ease-out;
  color: var(--text-primary);
}

.tab-content.active {
  display: block;
}

.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.content-header h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
}

.content-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  background: #fafbfc;
}

.card-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.card-body {
  padding: 24px;
  color: var(--text-primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn:hover:before {
  left: 100%;
}

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

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--secondary-color);
  color: var(--white);
}

.btn-secondary:hover {
  background: #5a6268;
  transform: translateY(-1px);
}

.btn-danger {
  background: var(--danger-color);
  color: var(--white);
}

.btn-danger:hover {
  background: #c82333;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}

/* Button Icons */
.btn-icon {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  position: relative;
}

.auth-icon {
  background: linear-gradient(135deg, #4CAF50, #45a049);
}

.publish-icon {
  background: linear-gradient(135deg, #2196F3, #1976D2);
}

.delete-icon {
  background: linear-gradient(135deg, #f44336, #d32f2f);
}

.btn-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: var(--white);
  border-radius: 1px;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  transition: var(--transition);
  background: var(--white);
  color: var(--text-primary);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.1);
}

.input-group {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.form-inline .form-input {
  flex: 1;
}

.character-count {
  position: absolute;
  bottom: 12px;
  right: 16px;
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--white);
  padding: 2px 6px;
  border-radius: 3px;
}

/* Posts Grid */
.posts-grid {
  display: grid;
  gap: 16px;
}

.post-item {
  background: #fafbfc;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 16px;
  transition: var(--transition);
}

.post-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.post-content {
  margin-bottom: 12px;
}

.post-content p {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 8px;
}

.post-meta {
  font-size: 12px;
  color: var(--text-secondary);
}

.post-status {
  margin-bottom: 12px;
}

.post-actions {
  display: flex;
  justify-content: flex-end;
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.status-badge.success {
  background: rgba(40, 167, 69, 0.1);
  color: var(--success-color);
  border: 1px solid rgba(40, 167, 69, 0.2);
}

.status-badge.error {
  background: rgba(220, 53, 69, 0.1);
  color: var(--danger-color);
  border: 1px solid rgba(220, 53, 69, 0.2);
}

.status-icon {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.check-icon {
  background: var(--success-color);
}

.warning-icon {
  background: var(--danger-color);
}

.status-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background: var(--white);
  border-radius: 50%;
}

/* Flash Messages */
.flash-container {
  margin-bottom: 24px;
}

.flash {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  animation: slideInDown 0.3s ease-out;
}

.flash.success {
  background: rgba(40, 167, 69, 0.1);
  color: var(--success-color);
  border: 1px solid rgba(40, 167, 69, 0.2);
}

.flash.error {
  background: rgba(220, 53, 69, 0.1);
  color: var(--danger-color);
  border: 1px solid rgba(220, 53, 69, 0.2);
}

.flash-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.8;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-secondary);
}

.empty-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #e9ecef, #dee2e6);
  border-radius: 50%;
  margin: 0 auto 16px;
  position: relative;
}

.empty-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  background: var(--white);
  border-radius: 50%;
}

.empty-state h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.empty-state p {
  font-size: 14px;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loading States */
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.btn:disabled:hover {
  transform: none;
  box-shadow: none;
}

/* Focus Indicators */
.btn:focus-visible,
.form-input:focus-visible,
.form-textarea:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Dropdown styles */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background-color: white;
  box-shadow: 0 2px 15px rgba(0,0,0,0.3);
  border-radius: 4px;
  padding: 10px 0;
  z-index: 1000;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  color: #333 !important;
  display: block;
  padding: 8px 16px;
  transition: background-color 0.2s;
}

.dropdown-menu a:hover {
  background-color: #f5f5f5;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  
  .site-navigation > ul {
    display: none;
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    background: rgba(12, 22, 49, 0.95);
    flex-direction: column;
    padding: 20px;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  }
  
  .site-navigation.active > ul {
    display: flex;
    top: 0;
  }
  
  .site-navigation ul li {
    margin: 10px 0;
    width: 100%;
    text-align: center;
  }
  
  .site-navigation ul li a {
    display: block;
    padding: 10px;
    font-size: 16px;
    width: 100%;
  }

  .container, .main-container {
    padding: 0 16px;
  }
  
  .tabs {
    flex-direction: column;
  }
  
  .tab-link {
    justify-content: flex-start;
    padding: 16px;
  }
  
  .content-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .input-group {
    flex-direction: column;
    align-items: stretch;
  }
  
  .card-body {
    padding: 16px;
  }

  .hero-section {
    height: 400px;
  }
  
  .hero-section h1 {
    font-size: 32px;
  }
  
  .hero-subtitle {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 16px 0;
  }
  
  .header h1 {
    font-size: 20px;
  }
  
  .subtitle {
    font-size: 14px;
  }
  
  .card-header, .card-body {
    padding: 16px;
  }

  .hero-section h1 {
    font-size: 28px;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
}

/* High Contrast Support */
@media (prefers-contrast: high) {
  :root {
    --border-color: #000000;
    --text-secondary: #000000;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

html, body {
  overflow-x: hidden;
}