/* Externalized styles for Omegle.us.org */

/* Typography and layout */
:root {
  --primary: #6c5ce7;
  --primary-dark: #5649c0;
  --secondary: #00cec9;
  --dark: #1a1a2e;
  --darker: #131324;
  --light: #f8f9fa;
  --gray: #adb5bd;
  --success: #00b894;
  --danger: #ff7675;
  --warning: #fdcb6e;
  --border-radius: 16px;
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  --transition: all 0.3s ease;
}

/* Smooth scrolling */
html { scroll-behavior: smooth; }

/* Brand selection color */
::selection { background: rgba(108, 92, 231, 0.35); color: #fff; }
::-moz-selection { background: rgba(108, 92, 231, 0.35); color: #fff; }

* {
  box-sizing: border-box;
}

/* Base body and background */
body { margin: 0; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; background: linear-gradient(135deg, var(--darker), var(--dark)); color: var(--light); line-height: 1.6; min-height: 100vh; position: relative; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; background: radial-gradient(circle at 10% 20%, rgba(108, 92, 231, 0.1) 0%, transparent 20%), radial-gradient(circle at 90% 80%, rgba(0, 206, 201, 0.1) 0%, transparent 20%); z-index: -1; }

/* Skip link */
.skip-link { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { position: fixed; left: 16px; top: 16px; width: auto; height: auto; padding: 10px 14px; background: #000; color: #fff; z-index: 1100; border-radius: 8px; }

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

header {
  padding: 0.5rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(26, 26, 46, 0.85);
  border-bottom: 1px solid rgba(108, 92, 231, 0.2);
}

.header-container { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-icon { font-size: 2.2rem; color: var(--secondary); background: rgba(0, 206, 201, 0.1); width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; border: 2px solid var(--secondary); }
.logo-text { font-size: 1.8rem; font-weight: 800; background: linear-gradient(to right, var(--primary), var(--secondary)); background-clip: text; -webkit-background-clip: text; color: transparent; -webkit-text-fill-color: transparent; letter-spacing: -0.5px; }
.logo-domain { font-size: 0.85rem; color: var(--gray); display: block; margin-top: -4px; letter-spacing: 0.5px; }

nav ul { display: flex; list-style: none; gap: 1.5rem; }
nav a { color: var(--light); text-decoration: none; font-weight: 500; font-size: 1.05rem; position: relative; padding: 0.5rem 0; transition: var(--transition); }
nav a:hover, nav a.active { color: var(--secondary); }
nav a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--secondary); transition: var(--transition); }
nav a:hover::after, nav a.active::after { width: 100%; }
.mobile-menu-btn { display: none; background: none; border: none; font-size: 1.8rem; color: var(--light); cursor: pointer; }

.hero { padding: 5rem 0 3rem; text-align: center; position: relative; }
.hero-content { max-width: 800px; margin: 0 auto; position: relative; z-index: 2; }
.hero h1 { font-size: 3.5rem; margin-bottom: 1.5rem; background: linear-gradient(to right, #fff, var(--secondary)); background-clip: text; -webkit-background-clip: text; color: transparent; -webkit-text-fill-color: transparent; line-height: 1.2; }
.hero p { font-size: 1.4rem; color: #e0e0ff; margin-bottom: 2.5rem; max-width: 700px; margin-left: auto; margin-right: auto; }

.highlight { color: var(--secondary); font-weight: 600; }

.cta-button { display: inline-block; background: linear-gradient(45deg, var(--primary), var(--secondary)); color: white; font-size: 1.3rem; font-weight: 600; padding: 1.2rem 2.8rem; border-radius: var(--border-radius); text-decoration: none; box-shadow: 0 8px 25px rgba(108, 92, 231, 0.4); transition: var(--transition); border: none; cursor: pointer; margin: 1rem; animation: pulse 2s infinite; }
.cta-button:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(108, 92, 231, 0.6); }
.cta-button:active { transform: translateY(1px); }

@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(108, 92, 231, 0.7); } 70% { box-shadow: 0 0 0 15px rgba(108, 92, 231, 0); } 100% { box-shadow: 0 0 0 0 rgba(108, 92, 231, 0); } }

.disclaimer { font-size: 0.95rem; color: var(--gray); margin-top: 1.5rem; max-width: 600px; margin-left: auto; margin-right: auto; }

.stats { display: flex; justify-content: center; gap: 2.5rem; margin-top: 3rem; flex-wrap: wrap; }
.stat-item { text-align: center; }
.stat-number { font-size: 2.8rem; font-weight: 700; background: linear-gradient(to right, var(--primary), var(--secondary)); background-clip: text; -webkit-background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.stat-label { font-size: 1.1rem; color: #c5c5e0; margin-top: 0.5rem; }

.section { padding: 5rem 0; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 3.5rem; position: relative; display: inline-block; left: 50%; transform: translateX(-50%); }
.section-title::after { content: ''; position: absolute; bottom: -15px; left: 50%; transform: translateX(-50%); width: 80px; height: 4px; background: var(--secondary); border-radius: 2px; }
.section-subtitle { text-align: center; font-size: 1.4rem; color: var(--gray); margin-bottom: 2.5rem; max-width: 700px; margin-left: auto; margin-right: auto; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.feature-card { background: rgba(30, 30, 55, 0.6); border-radius: var(--border-radius); padding: 2.2rem; text-align: center; transition: var(--transition); border: 1px solid rgba(108, 92, 231, 0.2); backdrop-filter: blur(5px); }
.feature-card:hover { transform: translateY(-10px); border-color: var(--secondary); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4); }
.feature-icon { font-size: 3.5rem; margin-bottom: 1.5rem; background: linear-gradient(45deg, var(--primary), var(--secondary)); background-clip: text; -webkit-background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.feature-card h3 { font-size: 1.7rem; margin-bottom: 1rem; color: white; }
.feature-card p { color: #c5c5e0; font-size: 1.05rem; }

.content-section { background: rgba(25, 25, 45, 0.7); border-top: 1px solid rgba(108, 92, 231, 0.2); border-bottom: 1px solid rgba(108, 92, 231, 0.2); }

.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about-text h2 { font-size: 2.2rem; margin-bottom: 1.5rem; color: white; }
.about-text p { margin-bottom: 1.2rem; color: #c5c5e0; font-size: 1.1rem; line-height: 1.7; }
.about-image { background: rgba(108, 92, 231, 0.1); border-radius: var(--border-radius); padding: 2rem; text-align: center; border: 2px solid rgba(108, 92, 231, 0.3); }
.about-image img { max-width: 100%; border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); }

.tips-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.8rem; margin-top: 2.5rem; }
.tip-card { background: rgba(30, 30, 55, 0.6); border-radius: var(--border-radius); padding: 1.8rem; border: 1px solid rgba(0, 206, 201, 0.2); transition: var(--transition); }
.tip-card:hover { transform: translateX(10px); border-color: var(--secondary); }
.tip-card h3 { font-size: 1.4rem; margin-bottom: 0.8rem; color: white; display: flex; align-items: center; gap: 10px; }
.tip-card i { color: var(--success); font-size: 1.5rem; }
.tip-card p { color: #c5c5e0; font-size: 1.05rem; line-height: 1.6; }

.how-it-works { background: rgba(19, 19, 36, 0.8); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2.5rem; margin-top: 3rem; }
.step { text-align: center; padding: 2rem; position: relative; }
.step-number { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); width: 40px; height: 40px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.2rem; border: 3px solid var(--darker); }
.step-icon { background: rgba(108, 92, 231, 0.15); width: 100px; height: 100px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; font-size: 2.8rem; color: var(--secondary); border: 2px solid var(--primary); }
.step h3 { font-size: 1.5rem; margin-bottom: 1rem; color: white; }
.step p { color: #c5c5e0; font-size: 1.05rem; }

.legal-notice { background: rgba(40, 25, 50, 0.8); border-left: 4px solid var(--warning); padding: 1.5rem; border-radius: 0 var(--border-radius) var(--border-radius) 0; margin: 3rem auto; max-width: 800px; }
.legal-notice p { font-size: 0.95rem; line-height: 1.5; color: #ffcc80; }
/* Link styles inside legal notice */
.legal-notice a { color: #ffdca8; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.legal-notice a:hover { color: #fff1c4; }

footer { background: rgba(19, 19, 36, 0.95); padding: 3rem 0 1.5rem; border-top: 1px solid rgba(108, 92, 231, 0.3); margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-col h3 { font-size: 1.4rem; margin-bottom: 1.5rem; position: relative; padding-bottom: 0.75rem; }
.footer-col h3::after { content: ''; position: absolute; bottom: 0; left: 0; width: 50px; height: 3px; background: var(--secondary); border-radius: 3px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.9rem; }
.footer-col ul li a { color: #c5c5e0; text-decoration: none; transition: var(--transition); display: block; }
.footer-col ul li a { position: relative; }
.footer-col ul li a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--secondary); transition: width 220ms ease; }
.footer-col ul li a:hover { color: var(--secondary); transform: translateX(5px); }
.footer-col ul li a:hover::after { width: 100%; }

/* Content link styles (paragraphs, articles) */
main a:not(.cta-button):not(nav a),
.section a,
.page-legal .legal-article a,
.page-about .about-article a {
  color: #b8c6ff;
  text-decoration: none;
  position: relative;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  transition: color 160ms ease, background-size 220ms ease;
}
main a:not(.cta-button):not(nav a):hover,
.section a:hover,
.page-legal .legal-article a:hover,
.page-about .about-article a:hover {
  color: var(--secondary);
  background-size: 100% 2px;
}
/* Visited color (content only) */
main a:not(.cta-button):not(nav a):visited,
.section a:visited,
.page-legal .legal-article a:visited,
.page-about .about-article a:visited { color: #a8b5ff; }

/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.animate { animation: fadeInUp 0.8s ease forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* Responsive */
@media (max-width: 992px) {
  .about-content { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.8rem; }
  .hero p { font-size: 1.2rem; }
  nav ul { gap: 1rem; }
  nav a { font-size: 0.95rem; }
}

@media (max-width: 768px) {
  .mobile-menu-btn { display: block; }
  nav ul { position: fixed; top: 75px; left: -100%; flex-direction: column; background: rgba(19, 19, 36, 0.95); backdrop-filter: blur(8px); width: 100%; text-align: center; padding: 2rem 0; box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1); transition: var(--transition); z-index: 999; opacity: 0; transform: translateY(-10px); }
  nav ul.active { left: 0; opacity: 1; transform: translateY(0); }
  .hero { padding: 4rem 0 2rem; }
  .hero h1 { font-size: 2.3rem; }
  .hero p { font-size: 1.1rem; }
  .cta-button { width: 100%; max-width: 320px; margin: 1.5rem auto; }
  .stats { gap: 1.5rem; }
  .stat-number { font-size: 2.2rem; }
  .section-title { font-size: 2rem; }
  .section { padding: 3.5rem 0; }
}

@media (max-width: 576px) {
  .hero h1 { font-size: 2rem; }
  .logo-text { font-size: 1.5rem; }
  .logo-domain { font-size: 0.75rem; }
  .stat-number { font-size: 1.8rem; }
  .stat-label { font-size: 0.95rem; }
  .feature-card { padding: 1.8rem 1.5rem; }
  .feature-icon { font-size: 2.8rem; }
  .section-title { font-size: 1.8rem; }
  .section-subtitle { font-size: 1.1rem; }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Visible focus styles for accessibility */
:focus-visible { outline: 3px solid var(--secondary); outline-offset: 3px; }
nav a:focus-visible, .cta-button:focus-visible, button:focus-visible { outline: 3px solid var(--secondary); outline-offset: 3px; border-radius: 8px; }
