/* ============================================================
   COMMON.CSS — CoreLink Enterprises Global Styles
   Theme: Global Network & Digital Infrastructure
   ============================================================ */

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

/* ── CSS Variables ── */
:root {
  --primary: #0F172A;
  --primary-light: #334155;
  --secondary: #1E3A8A;
  --secondary-light: #2563EB;
  --accent: #06B6D4;
  --accent-light: #22D3EE;
  --highlight: #10B981;
  --highlight-light: #34D399;
  
  --bg-white: #FFFFFF;
  --bg-light: #F1F5F9;
  --bg-dark: #0F172A;
  
  --text-dark: #111827;
  --text-muted: #64748B;
  --text-light: #F8FAFC;
  --border-light: #E2E8F0;
  --border-dark: #334155;
  
  --shadow-sm: 0 1px 2px rgba(15,23,42,0.05);
  --shadow-md: 0 4px 6px -1px rgba(15,23,42,0.1), 0 2px 4px -1px rgba(15,23,42,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(15,23,42,0.1), 0 4px 6px -2px rgba(15,23,42,0.05);
  --shadow-glow: 0 0 20px rgba(6,182,212,0.3);
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  
  --max-width: 1280px;
  --header-height: 80px;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--text-dark); background: var(--bg-white); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: var(--transition-fast); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; color: var(--primary); }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); }
p { color: var(--text-muted); line-height: 1.7; }

/* ── Layout ── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ── Header ── */
.cl-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  height: var(--header-height);
  transition: var(--transition-smooth);
}
.cl-header.scrolled { box-shadow: var(--shadow-sm); }
.cl-nav { display: flex; align-items: center; justify-content: space-between; height: 100%; }

.cl-logo { display: flex; align-items: center; gap: 12px; }
.cl-logo-icon {
  width: 40px; height: 40px;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
}
.cl-logo-icon::after {
  content: ''; position: absolute; width: 2px; height: 100%; background: var(--accent); left: 10px;
}
.cl-logo-icon::before {
  content: ''; position: absolute; width: 100%; height: 2px; background: var(--secondary); top: 10px;
}
.cl-logo-text { font-family: var(--font-heading); font-weight: 800; font-size: 1.4rem; letter-spacing: -0.02em; color: var(--primary); }
.cl-logo-tag { font-size: 0.65rem; color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; display: block; line-height: 1; }

.cl-nav-links { display: flex; gap: 32px; align-items: center; }
.cl-nav-links a { font-size: 0.95rem; font-weight: 500; color: var(--text-muted); position: relative; }
.cl-nav-links a:hover, .cl-nav-links a.active { color: var(--primary); }
.cl-nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--accent); transition: var(--transition-fast);
}
.cl-nav-links a:hover::after, .cl-nav-links a.active::after { width: 100%; }

.cl-auth-group { display: flex; align-items: center; gap: 16px; }
.cl-nav-login { font-weight: 600; font-size: 0.95rem; color: var(--primary); }
.cl-nav-login:hover { color: var(--accent); }
.cl-nav-register { 
  background: var(--primary); color: #fff; padding: 10px 24px; border-radius: var(--radius-sm); 
  font-weight: 600; font-size: 0.95rem; transition: var(--transition-fast);
}
.cl-nav-register:hover { background: var(--secondary); box-shadow: var(--shadow-md); }

.cl-user-profile { display: none; align-items: center; gap: 12px; }
.cl-user-profile.active { display: flex; }
.cl-auth-group.logged-in .cl-guest-links { display: none; }
.cl-user-name { font-weight: 600; color: var(--primary); }
.cl-logout-btn { color: #ef4444; font-weight: 500; font-size: 0.9rem; cursor: pointer; }
.cl-logout-btn:hover { text-decoration: underline; }

.mobile-menu-btn { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.mobile-menu-btn span { width: 24px; height: 2px; background: var(--primary); transition: 0.3s; }

/* ── Buttons ── */
.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px; font-weight: 600; font-size: 1rem;
  border-radius: var(--radius-sm); transition: var(--transition-fast);
}
.btn-primary { background: var(--accent); color: #fff; border: 1px solid var(--accent); }
.btn-primary:hover { background: #0891B2; box-shadow: var(--shadow-glow); border-color: #0891B2; }
.btn-secondary { background: transparent; color: var(--bg-white); border: 1px solid var(--bg-white); }
.btn-secondary:hover { background: rgba(255,255,255,0.1); }
.btn-dark { background: var(--primary); color: #fff; }
.btn-dark:hover { background: var(--primary-light); }

/* ── UI Elements ── */
.section { padding: 100px 0; }
.section-light { background: var(--bg-light); }
.section-dark { background: var(--bg-dark); color: var(--text-light); }
.section-dark h2, .section-dark p { color: var(--text-light); }

.badge {
  display: inline-block; padding: 6px 12px; font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  background: rgba(6,182,212,0.1); color: var(--accent);
  border-radius: var(--radius-full); margin-bottom: 16px; border: 1px solid rgba(6,182,212,0.2);
}

.text-gradient {
  background: linear-gradient(90deg, var(--accent), var(--secondary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

/* ── Footer ── */
.cl-footer { background: var(--primary); color: var(--text-light); padding: 80px 0 40px; border-top: 4px solid var(--accent); }
.cl-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 60px; }
.cl-footer-brand p { color: #94A3B8; margin-top: 16px; font-size: 0.95rem; }
.cl-footer-brand .cl-logo-text { color: #fff; }
.cl-footer h4 { color: #fff; font-size: 1.1rem; margin-bottom: 24px; }
.cl-footer-links { display: flex; flex-direction: column; gap: 12px; }
.cl-footer-links a { color: #94A3B8; font-size: 0.95rem; }
.cl-footer-links a:hover { color: var(--accent); padding-left: 5px; }
.cl-footer-contact p { color: #94A3B8; font-size: 0.95rem; margin-bottom: 8px; display: flex; gap: 12px; }
.cl-footer-bottom { padding-top: 32px; border-top: 1px solid var(--border-dark); display: flex; justify-content: space-between; align-items: center; color: #94A3B8; font-size: 0.9rem; }
.cl-footer-bottom-links { display: flex; gap: 24px; }
.cl-footer-bottom-links a:hover { color: #fff; }

/* ── Toast Notifications ── */
#toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 12px; }
.toast { background: var(--primary); color: #fff; padding: 16px 24px; border-radius: var(--radius-sm); border-left: 4px solid var(--accent); box-shadow: var(--shadow-lg); font-size: 0.95rem; animation: slideInRight 0.3s forwards; }

@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ── Mobile ── */
@media (max-width: 992px) {
  .cl-nav-links {
    position: fixed; top: var(--header-height); left: -100%; width: 280px; height: calc(100vh - var(--header-height));
    background: #fff; flex-direction: column; align-items: flex-start; padding: 40px; box-shadow: var(--shadow-lg);
    transition: left var(--transition-smooth);
  }
  .cl-nav-links.active { left: 0; }
  .mobile-menu-btn { display: flex; }
  .cl-auth-group { display: none; }
  .cl-footer-grid { grid-template-columns: 1fr; }
  .cl-footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}
