/* ============================================
   TOOLCOMPASS GLOBAL STYLES - LOCAL ASSETS
   ============================================ */

/* 1. LOCALE FONTS (Plus Jakarta Sans) */
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/assets/fonts/PlusJakartaSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/assets/fonts/PlusJakartaSans-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/assets/fonts/PlusJakartaSans-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/assets/fonts/PlusJakartaSans-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root { 
    --bg-dark: #030712; 
    --card-bg: rgba(17, 24, 39, 0.5); 
    --accent-primary: #6366f1; 
    --accent-secondary: #06b6d4; 
    --text-main: #f3f4f6; 
    --text-muted: #9ca3af; 
    --border: rgba(255, 255, 255, 0.06);
    --glass: blur(16px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body { 
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif; 
    background-color: var(--bg-dark); 
    color: var(--text-main); 
    line-height: 1.6; 
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Ambient Background Glows */
.bg-glows {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1; overflow: hidden; pointer-events: none;
}
.glow-1, .glow-2 {
    position: absolute; width: 600px; height: 600px;
    border-radius: 50%; filter: blur(120px); opacity: 0.25;
    animation: float 12s infinite alternate ease-in-out;
}
.glow-1 {
    top: -10%; left: -10%;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 80%);
}
.glow-2 {
    bottom: -10%; right: -10%;
    background: radial-gradient(circle, var(--accent-secondary) 0%, transparent 80%);
    animation-delay: -6s;
}
@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 40px) scale(1.1); }
}

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 4rem 2rem; position: relative; z-index: 1; }

/* Typography */
h1 { 
    font-size: clamp(3rem, 6vw, 4.5rem); font-weight: 800; 
    letter-spacing: -0.04em; margin-bottom: 1.5rem; line-height: 1.1;
    background: linear-gradient(to right, #ffffff, #9ca3af); 
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; 
}
h1 span {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.subtitle { color: var(--text-muted); font-size: 1.25rem; max-width: 650px; margin: 0 auto; text-align: center; }

/* Header Fix */
header { text-align: center; margin-bottom: 6rem; padding-top: 2rem; animation: fadeInDown 0.8s cubic-bezier(0.16, 1, 0.3, 1); }

/* Tool Cards */
.tool-card { 
    background: var(--card-bg); backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass);
    padding: 3rem 2.5rem; border-radius: 24px; border: 1px solid var(--border);
    text-decoration: none; color: inherit; display: flex; flex-direction: column;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); position: relative;
}
.tool-card:hover { 
    transform: translateY(-6px); border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 30px 60px -15px rgba(0,0,0,0.8), 0 0 50px rgba(99, 102, 241, 0.1);
}
.tool-icon-wrapper {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(6, 118, 212, 0.1));
    border: 1px solid rgba(255,255,255,0.05); border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 2rem; color: var(--accent-secondary); transition: transform 0.3s ease;
}
.tool-card:hover .tool-icon-wrapper {
    transform: scale(1.1) rotate(3deg); color: #fff;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
}
.tool-title { font-size: 1.6rem; font-weight: 700; margin-bottom: 0.8rem; color: white; letter-spacing: -0.02em; }
.tool-desc { color: var(--text-muted); font-size: 1.05rem; line-height: 1.6; }

/* Badges */
.badge { 
    display: inline-flex; align-items: center; gap: 0.4rem; align-self: flex-start;
    background: rgba(6, 182, 212, 0.1); color: var(--accent-secondary); 
    font-size: 0.75rem; padding: 0.4rem 0.9rem; border-radius: 99px; 
    margin-bottom: 1.2rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
    border: 1px solid rgba(6, 182, 212, 0.15);
}
.badge.live { background: rgba(16, 185, 129, 0.1); color: #10b981; border-color: rgba(16, 185, 129, 0.15); }
.badge.live::before { content: ''; width: 6px; height: 6px; background: #10b981; border-radius: 50%; display: inline-block; animation: pulse 1.5s infinite; }
@keyframes pulse { 0% { opacity: 0.4; } 50% { opacity: 1; } 100% { opacity: 0.4; } }

.coming-soon { opacity: 0.4; cursor: not-allowed; }
.coming-soon:hover { transform: none; box-shadow: none; border-color: var(--border); background: var(--card-bg); }

/* Info Section */
section.info { 
    background: radial-gradient(100% 100% at 50% 0%, rgba(99, 102, 241, 0.05) 0%, transparent 100%), var(--card-bg);
    backdrop-filter: var(--glass); padding: 4rem 3rem; border-radius: 28px; 
    border: 1px solid var(--border); margin-bottom: 4rem; text-align: center;
}
section.info h2 { font-size: 2.2rem; font-weight: 700; margin-bottom: 1.2rem; color: white; letter-spacing: -0.03em; }
section.info p { color: var(--text-muted); max-width: 750px; margin: 0 auto; font-size: 1.15rem; line-height: 1.7; }

/* Footer */
footer { 
    border-top: 1px solid var(--border); padding: 4rem 2rem; 
    text-align: center; color: var(--text-muted); font-size: 0.95rem; 
    background: rgba(3, 7, 18, 0.6); backdrop-filter: blur(12px);
}
.footer-links { margin-bottom: 2rem; display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; font-weight: 500; }
.footer-links a:hover { color: white; }
.footer-copy { font-weight: 600; color: rgba(255,255,255,0.7); }
.ad-disclosure { font-size: 0.8rem; opacity: 0.5; margin-top: 2rem; max-width: 700px; margin-left: auto; margin-right: auto; line-height: 1.6; }

/* Grid Layouts */
.tools-grid { display: grid; gap: 2.5rem; margin-bottom: 6rem; }
@media (min-width: 768px) { .tools-grid { grid-template-columns: repeat(3, 1fr); } }

/* Animations */
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================
   TOOL-SPECIFIC STYLES
   ============================================ */

nav { margin-bottom: 3rem; padding-top: 1rem; }
nav a { 
    color: var(--text-muted); text-decoration: none; font-size: 0.9rem; font-weight: 500;
    display: inline-flex; align-items: center; gap: 0.5rem; transition: all 0.2s; 
}
nav a:hover { color: white; transform: translateX(-3px); }

.tool-interface { 
    background: var(--card-bg); backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass); 
    padding: 2.5rem; border-radius: 24px; border: 1px solid var(--border); 
    margin-bottom: 4rem; box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
}
label { display: block; font-weight: 600; margin-bottom: 0.6rem; font-size: 0.9rem; color: var(--text-main); }
textarea, select { 
    width: 100%; padding: 1rem; background: rgba(3, 7, 18, 0.6); 
    border: 1px solid var(--border); border-radius: 12px; color: white; 
    font-family: inherit; font-size: 1rem; margin-bottom: 1.5rem; transition: all 0.2s; outline: none;
}
textarea:focus, select:focus { border-color: var(--accent-primary); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15); }
textarea { min-height: 120px; resize: vertical; }
select option { background: var(--bg-dark); color: white; }
.controls-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }

.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 0.5rem; }
button { 
    padding: 1rem 2rem; border-radius: 12px; font-weight: 700; cursor: pointer; 
    border: none; font-size: 1rem; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); 
    display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-primary { 
    background: linear-gradient(135deg, var(--accent-primary), #4f46e5); color: white; 
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4); }
.btn-secondary { background: rgba(255,255,255,0.03); border: 1px solid var(--border); color: var(--text-muted); }
.btn-secondary:hover { border-color: var(--text-muted); color: white; background: rgba(255,255,255,0.06); }

.output-area { margin-top: 2.5rem; display: none; animation: fadeIn 0.5s ease-out; }
.output-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.8rem; }
.output-box { 
    background: rgba(3, 7, 18, 0.8); padding: 2rem; border-radius: 16px; 
    position: relative; white-space: pre-wrap; font-family: 'JetBrains Mono', monospace; 
    font-size: 0.95rem; border: 1px solid var(--border); color: #e2e8f0; line-height: 1.7; 
}
.copy-btn { 
    background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: var(--text-muted); 
    padding: 0.5rem 1rem; font-size: 0.85rem; border-radius: 8px; cursor: pointer; 
    transition: all 0.2s; font-weight: 600; display: inline-flex; align-items: center; gap: 0.4rem;
}
.copy-btn:hover { background: var(--accent-secondary); color: white; border-color: var(--accent-secondary); }
.tip { margin-top: 1rem; font-size: 0.85rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.5rem; }

.faq { margin-top: 4rem; }
.faq h2 { font-size: 1.8rem; margin-bottom: 2rem; color: white; font-weight: 700; letter-spacing: -0.02em; }
details { 
    background: var(--card-bg); backdrop-filter: var(--glass); 
    border: 1px solid var(--border); border-radius: 16px; margin-bottom: 1rem; 
    overflow: hidden; transition: all 0.3s; 
}
summary { 
    padding: 1.3rem 1.8rem; cursor: pointer; font-weight: 600; list-style: none; 
    color: white; display: flex; justify-content: space-between; align-items: center; 
}
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 1.5rem; color: var(--accent-secondary); transition: transform 0.3s; font-weight: 400; }
details[open] summary::after { transform: rotate(45deg); }
details[open] { border-color: rgba(99, 102, 241, 0.3); background: rgba(17, 24, 39, 0.7); }
.faq-answer { padding: 0 1.8rem 1.5rem; color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }

@media (max-width: 600px) { 
    .controls-grid { grid-template-columns: 1fr; gap: 0; } 
    .tool-interface { padding: 1.5rem; } 
    h1 { font-size: 2rem; } 
}
