/* AI Advantage Agency Dark Theme */
:root {
  --primary-dark: #000000;
  --secondary-dark: #1a1a1a;
  --accent-dark: #2d2d2d;
  --text-primary: #ffffff;
  --text-secondary: #b8b8b8;
  --text-muted: #888888;
  --linkedin-blue: #0077b5;
  --linkedin-blue-hover: #005a87;
  --success-green: #28a745;
  --feature-green: #8fdb69;
  --error-red: #dc3545;
  --warning-orange: #fd7e14;
  --border-color: #404040;
  --shadow: rgba(255, 255, 255, 0.1);
}

/* Global Styles */
body {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
  color: var(--text-primary);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* Background Effects */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 119, 181, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.01) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* Card Styling */
.card {
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  margin: 3rem auto;
  max-width: 100%;
}

.card-body {
  position: relative;
}

/* Brand Styling */
.brand-logo-container {
  width: 100px;
  height: 100px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--secondary-dark), var(--accent-dark));
  border-radius: 20px;
  border: 2px solid var(--border-color);
  overflow: hidden;
}

.brand-logo-img {
  width: 90%;
  height: 90%;
  object-fit: contain;
  border-radius: 15px;
}

.brand-logo {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--linkedin-blue), var(--linkedin-blue-hover));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  position: relative;
}

.brand-logo::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, var(--linkedin-blue), transparent, var(--linkedin-blue-hover));
  border-radius: 22px;
  z-index: -1;
}

.brand-text {
  font-size: 28px;
  font-weight: 900;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.brand-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0;
  letter-spacing: -0.5px;
}

.brand-subtitle {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Welcome Section */
.welcome-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.welcome-text {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 14px;
}

/* LinkedIn Button */
.btn-linkedin {
  background: linear-gradient(135deg, var(--linkedin-blue), var(--linkedin-blue-hover));
  border: none;
  color: white;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.3s ease;
  text-transform: none;
  box-shadow: 0 4px 15px rgba(0, 119, 181, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-linkedin::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-linkedin:hover::before {
  left: 100%;
}

.btn-linkedin:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 119, 181, 0.4);
  color: white;
}

.btn-linkedin:active {
  transform: translateY(0);
}

/* Features Section */
.features {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
}

.feature-item {
  text-align: center;
  padding: 0.5rem;
}

.feature-icon {
  font-size: 20px;
  color: var(--feature-green);
  margin-bottom: 0.5rem;
  display: block;
}

.feature-text {
  color: var(--text-secondary);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Success Page Styles */
.success-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--success-green), #20c997);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  animation: successPulse 2s infinite;
}

.success-icon i {
  font-size: 36px;
  color: white;
}

@keyframes successPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(40, 167, 69, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}

.success-title {
  color: var(--success-green);
  font-weight: 600;
}

.success-text {
  color: var(--text-secondary);
  line-height: 1.6;
}

.user-info-card {
  background: var(--accent-dark);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
}

.linkedin-icon {
  font-size: 24px;
  color: var(--linkedin-blue);
}

.user-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 16px;
}

.user-id {
  font-family: 'Courier New', monospace;
  font-size: 12px;
}

/* API Info */
.api-info {
  background: var(--secondary-dark);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
}

.code-block {
  background: var(--primary-dark);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem;
}

.api-endpoint {
  color: var(--linkedin-blue);
  font-family: 'Courier New', monospace;
  font-size: 12px;
  word-break: break-all;
}

/* Status Indicators */
.status-item {
  text-align: center;
  padding: 0.5rem;
}

.status-item i {
  font-size: 18px;
  margin-bottom: 0.25rem;
  display: block;
}

.status-item small {
  color: var(--text-secondary);
  font-size: 11px;
}

/* Error Page Styles */
.error-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--error-red), #e74c3c);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  animation: errorShake 0.5s ease-in-out;
}

.error-icon i {
  font-size: 36px;
  color: white;
}

@keyframes errorShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.error-title {
  color: var(--error-red);
  font-weight: 600;
}

.error-text {
  color: var(--text-secondary);
  line-height: 1.6;
}

.error-details {
  background: var(--secondary-dark);
  border-radius: 12px;
  padding: 1rem;
}

.error-message {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: var(--text-primary);
  word-break: break-word;
}

.alert-dark {
  background-color: var(--accent-dark);
  border-color: var(--error-red);
  color: var(--text-primary);
}

/* Troubleshooting */
.troubleshooting {
  background: var(--secondary-dark);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
}

.tips-list {
  max-width: 300px;
  margin: 0 auto;
}

.tip-item {
  display: flex;
  align-items: flex-start;
  color: var(--text-secondary);
}

.tip-item i {
  margin-top: 2px;
  flex-shrink: 0;
}

/* Outline Button */
.btn-outline-light {
  border-color: var(--border-color);
  color: var(--text-secondary);
  background: transparent;
  transition: all 0.3s ease;
}

.btn-outline-light:hover {
  background: var(--accent-dark);
  border-color: var(--text-secondary);
  color: var(--text-primary);
  transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .card-body {
    padding: 2rem !important;
  }
  
  .brand-logo {
    width: 60px;
    height: 60px;
  }
  
  .brand-text {
    font-size: 24px;
  }
  
  .brand-title {
    font-size: 20px;
  }
  
  .welcome-title {
    font-size: 20px;
  }
  
  .btn-linkedin {
    padding: 12px 24px !important;
    font-size: 14px;
  }
}

/* Hyperscale Section */
.hyperscale-section {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--secondary-dark);
  border: 1px solid var(--border-color);
}

.hyperscale-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hyperscale-text-content {
  padding: 1.5rem 1.5rem 0;
  text-align: center;
}

.hyperscale-title {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, var(--feature-green), var(--text-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hyperscale-description {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 0;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.hyperscale-image {
  width: 100%;
  border-radius: 0 0 12px 12px;
  overflow: hidden;
}

.hyperscale-img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.8;
  border-radius: 0 0 12px 12px;
}

/* Utility Classes */
.text-gradient {
  background: linear-gradient(135deg, var(--linkedin-blue), var(--text-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.border-gradient {
  border: 2px solid transparent;
  background: linear-gradient(var(--secondary-dark), var(--secondary-dark)) padding-box,
              linear-gradient(135deg, var(--linkedin-blue), var(--text-secondary)) border-box;
}

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

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

.slide-up {
  animation: slideUp 0.5s ease-out;
}

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

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

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

::-webkit-scrollbar-thumb {
  background: var(--accent-dark);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-color);
}

/* Mobile Centering Fixes for S25 Ultra and other devices */
@media (max-width: 768px) {
  body {
    padding: 0;
    margin: 0;
  }
  
  .container-fluid {
    padding-left: 15px !important;
    padding-right: 15px !important;
    margin: 0;
    width: 100%;
  }
  
  .card {
    margin: 2rem auto !important;
    width: 100%;
    max-width: calc(100vw - 30px);
  }
  
  .card-body {
    padding: 2rem 1.5rem !important;
  }
  
  .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  [class*="col-"] {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* Ultra-wide mobile screens (S25 Ultra, etc.) */
@media (max-width: 480px) {
  .card {
    margin: 1.5rem auto !important;
    max-width: calc(100vw - 20px);
  }
  
  .container-fluid {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}
