﻿/* IPVerify - Dark Theme Stylesheet */
:root {
    /* Slightly cooler dark base with more separation between layers */
    --bg-base: #141820;
    --bg-surface: #1e2530;
    --bg-elevated: #2a3340;
    --bg-hover: #354050;
    --text-primary: #f5f7fa;
    --text-secondary: #b8c0cc;
    --text-muted: #8892a0;
    /* Stronger teal + secondary blue accent for more color */
    --accent: #2ee6b8;
    --accent-hover: #1ad4a4;
    --accent-dim: rgba(46, 230, 184, 0.16);
    --accent-secondary: #5b9fff;
    --border: #3d4a5c;
    --border-light: #526078;
    --danger: #ff6b7a;
    --warning: #ffd166;
    --success: #6bcb77;
    --ad-bg: #1e2530;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --radius: 8px;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', Consolas, monospace;
    --header-height: 64px;
    --sidebar-width: 160px;
    --max-content: 900px;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

    a:hover {
        color: var(--accent-hover);
    }

img {
    max-width: 100%;
    height: auto;
}

/* ========== HEADER ========== */
.site-header {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 0 rgba(46, 230, 184, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.25rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--text-primary);
    white-space: nowrap;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #0f1419;
    font-weight: 800;
    box-shadow: 0 0 12px rgba(46, 230, 184, 0.35);
}

.logo:hover {
    color: var(--text-primary);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    color: var(--text-secondary);
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

    .nav-link:hover {
        color: var(--text-primary);
        background: var(--bg-elevated);
    }

    .nav-link.active {
        color: var(--accent);
        background: var(--accent-dim);
    }

.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    min-width: 200px;
    padding: 0.4rem;
    box-shadow: var(--shadow);
    z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.55rem 0.9rem;
    color: var(--text-secondary);
    border-radius: 6px;
    font-size: 0.9rem;
}

    .nav-dropdown-menu a:hover {
        background: var(--bg-hover);
        color: var(--text-primary);
    }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.4rem;
}

/* ========== TOP BANNER AD ========== */
.top-ad-banner {
    background: var(--ad-bg);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1rem;
    text-align: center;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-placeholder {
    background: var(--bg-elevated);
    border: 1px dashed var(--border-light);
    border-radius: var(--radius);
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 728px;
    height: 90px;
    margin: 0 auto;
}

    .ad-placeholder.sidebar {
        width: 160px;
        height: 600px;
        max-width: none;
        writing-mode: horizontal-tb;
    }

.ad-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

/* ========== MAIN LAYOUT ========== */
.page-wrapper {
    flex: 1;
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding: 1.5rem 1rem;
    gap: 1.5rem;
}

.sidebar-ad {
    flex: 0 0 var(--sidebar-width);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: sticky;
    top: calc(var(--header-height) + 1.5rem);
    align-self: flex-start;
}

.main-content {
    flex: 1;
    min-width: 0;
    max-width: var(--max-content);
    margin: 0 auto;
}

/* ========== CARDS & SECTIONS ========== */
.card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

    .card:hover {
        border-color: var(--border-light);
    }

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.subsection-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
    color: var(--text-primary);
}

/* ========== IP DISPLAY ========== */
.ip-hero {
    text-align: center;
    padding: 2rem 1.5rem;
    display: block;
}

.ip-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.ip-address {
    font-family: var(--font-mono);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--accent);
    word-break: break-all;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    text-shadow: 0 0 24px rgba(46, 230, 184, 0.35);
}

.ip-copy-btn {
    background: var(--accent-dim);
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 6px;
    padding: 0.2rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
}

    .ip-copy-btn:hover {
        background: var(--accent);
        color: var(--bg-base);
    }

/* ========== LOOKUP FORM ========== */
.lookup-form {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.lookup-input {
    flex: 1;
    min-width: 200px;
    background: var(--bg-base);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-mono);
    transition: border-color 0.2s ease;
}

    .lookup-input:focus {
        outline: none;
        border-color: var(--accent);
        box-shadow: 0 0 0 3px var(--accent-dim);
    }

    .lookup-input::placeholder {
        color: var(--text-muted);
    }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: #0f1419;
    box-shadow: 0 2px 12px rgba(46, 230, 184, 0.3);
}

    .btn-primary:hover {
        background: var(--accent-hover);
        box-shadow: 0 4px 16px rgba(46, 230, 184, 0.4);
    }

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

    .btn-secondary:hover {
        background: var(--bg-hover);
    }

/* ========== INFO GRID ========== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.info-item {
    background: var(--bg-base);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    transition: border-color 0.2s ease;
}

    .info-item:hover {
        border-color: var(--border-light);
    }

.info-item-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.info-item-value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    word-break: break-word;
}

    .info-item-value.mono {
        font-family: var(--font-mono);
    }

/* ========== TOOLS GRID ========== */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.tool-card {
    background: var(--bg-base);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    transition: all 0.2s ease;
    display: block;
}

    .tool-card:hover {
        border-color: var(--accent);
        background: var(--bg-elevated);
        transform: translateY(-2px);
        box-shadow: 0 4px 20px rgba(46, 230, 184, 0.12);
    }

.tool-icon {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.tool-name {
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
}

.tool-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ========== CONTENT TYPOGRAPHY ========== */
.content-body p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.content-body h2 {
    font-size: 1.4rem;
    margin: 1.75rem 0 0.75rem;
    color: var(--text-primary);
}

.content-body h3 {
    font-size: 1.15rem;
    margin: 1.5rem 0 0.6rem;
    color: var(--text-primary);
}

.content-body ul, .content-body ol {
    margin: 0.75rem 0 1rem 1.5rem;
    color: var(--text-secondary);
}

.content-body li {
    margin-bottom: 0.4rem;
}

.content-body code {
    font-family: var(--font-mono);
    background: var(--bg-elevated);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
}

/* ========== TOOL PAGE FORM ========== */
.tool-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.results-box {
    background: var(--bg-base);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    min-height: 200px;
    /* white-space: pre-wrap;*/
    color: var(--text-secondary);
    overflow-x: auto;
}

    .results-box.placeholder {
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--text-muted);
        font-family: var(--font-sans);
    }

/* ========== FOOTER ========== */
.site-footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    padding: 2rem 1.25rem;
    margin-top: auto;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
}

.footer-col h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 0.25rem 0;
}

    .footer-col a:hover {
        color: var(--accent);
    }

.footer-bottom {
    max-width: 1400px;
    margin: 1.5rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ========== LEGAL PAGES ========== */
.legal-content {
    max-width: 800px;
}

    .legal-content h1 {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }

.legal-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.legal-content h2 {
    font-size: 1.25rem;
    margin: 2rem 0 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border);
}

.legal-content p, .legal-content li {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.legal-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

/* ========== ARTICLE PAGES ========== */
.article-content {
    max-width: 800px;
    font-size: 0.9rem;
}

    .article-content h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
        color: var(--accent);
    }

    .article-content h2 {
        font-size: 1.2rem;
        margin: 2rem 0 0.75rem;
        padding-bottom: 0.4rem;
        color: var(--accent);
        border-bottom: 1px solid var(--border);
    }

.article-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.article-content p {
    margin: 0.50rem 0 1rem 0;
}

.article-content li {
    margin: 0.75rem 0 1rem 1.5rem;
}

.article-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

/* ========== BADGES ========== */
.badge {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.badge-success {
    background: rgba(107, 203, 119, 0.15);
    color: var(--success);
}

.badge-danger {
    background: rgba(255, 107, 107, 0.15);
    color: var(--danger);
}

.badge-warning {
    background: rgba(255, 217, 61, 0.15);
    color: var(--warning);
}

.badge-neutral {
    background: var(--bg-elevated);
    color: var(--text-secondary);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .sidebar-ad {
        display: none;
    }

    .page-wrapper {
        padding: 1rem;
    }

    .main-content {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .main-nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--bg-surface);
        border-bottom: 1px solid var(--border);
        padding: 1rem;
        gap: 0.25rem;
    }

    .nav-dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        background: transparent;
        padding-left: 1rem;
    }

    .nav-dropdown.open .nav-dropdown-menu {
        display: block;
    }

    .ip-address {
        font-size: 1.6rem;
    }

    .lookup-form {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .top-ad-banner {
        min-height: 50px;
        padding: 0.5rem;
    }

    .ad-placeholder {
        height: 50px;
        max-width: 320px;
    }

    .header-inner {
        padding: 0 1rem;
    }
}

/* ========== UTILITY ========== */
.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.hidden {
    display: none !important;
}

.coming-soon {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--accent-dim);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}
