/* CLOUDFLARE DESIGN SYSTEM - 'LAVA' EVOLUTION */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --cf-orange: #F6821F;
    --cf-orange-hover: #d46b15;
    --cf-black: #1D1D1D;
    --cf-gray-dark: #36393F;
    --cf-gray-medium: #666666;
    --cf-gray-light: #B0B0B0;
    --cf-bg: #FAFAFA;
    --surface: #FFFFFF;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 12px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--cf-bg);
    color: var(--cf-gray-dark);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* SEARCH PAGE */
.search-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    background: radial-gradient(circle at top right, rgba(246, 130, 31, 0.03), transparent 40%);
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 50px;
    opacity: 0;
    animation: fadeInDown 0.8s ease-out forwards;
}

.logo-img { height: 40px; }
.brand-divider { height: 28px; width: 2px; background-color: #E5E5E5; }
.app-name { font-size: 24px; font-weight: 600; letter-spacing: -0.3px; color: var(--cf-black); line-height: 1; margin-top: 2px; }

.search-wrapper {
    position: relative;
    width: 100%;
    max-width: 680px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.search-box {
    width: 100%;
    padding: 22px 30px;
    border-radius: 50px;
    border: 1px solid transparent;
    background: var(--surface);
    font-size: 18px;
    color: var(--cf-black);
    box-shadow: var(--shadow-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    text-align: center;
}
.search-box:focus { outline: none; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); transform: translateY(-2px); }

.btn-action {
    background-color: var(--cf-orange);
    color: white;
    padding: 14px 48px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 30px;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-md);
    letter-spacing: 0.5px;
}
.btn-action:hover { background-color: var(--cf-orange-hover); transform: translateY(-1px); box-shadow: 0 10px 15px -3px rgba(246, 130, 31, 0.3); }

.loader { display: none; margin-top: 40px; text-align: center; }
.loading-bar { width: 200px; height: 4px; background: #E5E5E5; border-radius: 2px; overflow: hidden; margin: 0 auto 15px auto; }
.loading-bar::after { content: ''; display: block; width: 40%; height: 100%; background: var(--cf-orange); border-radius: 2px; animation: slide 1.5s infinite ease-in-out; }
.loading-text { font-size: 14px; color: var(--cf-gray-medium); font-weight: 500; animation: pulse 2s infinite; }

/* RESULTS PAGE */
.header-nav {
    background: var(--surface);
    padding: 16px 40px;
    border-bottom: 1px solid #F0F0F0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.nav-group { display: flex; align-items: center; gap: 12px; }
.version-badge { 
    background-color: #F1F1F1; 
    color: var(--cf-gray-medium); 
    padding: 4px 8px; 
    border-radius: 6px; 
    font-size: 12px; 
    font-weight: 600; 
    letter-spacing: 0.5px;
}

.nav-logo { height: 32px; }
.nav-link { text-decoration: none; color: var(--cf-gray-medium); font-weight: 500; font-size: 14px; display: flex; align-items: center; gap: 8px; transition: color 0.2s; }
.nav-link:hover { color: var(--cf-orange); }

.report-container { max-width: 850px; margin: 60px auto; padding: 0 20px; }
.report-card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 0; 
    margin-bottom: 50px;
    border: 1px solid #F0F0F0;
    position: relative;
    overflow: hidden;
    border-top: 4px solid var(--cf-orange);
}

.report-header-lockup {
    padding: 40px 50px 30px 50px;
    border-bottom: 1px solid #F0F0F0;
}

/* NEW METADATA STYLING */
.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 12px;
}

.meta-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--cf-gray-medium);
    font-family: monospace;
    background: #F4F4F5;
    padding: 6px 12px;
    border-radius: 6px;
    width: fit-content;
}

.meta-stats .divider { color: #DDD; }

.cache-badge {
    background-color: #DEF7EC;
    color: #03543F;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 11px;
    font-family: 'Inter', sans-serif;
    margin-left: 8px;
    border: 1px solid #BCF0DA;
}

.report-title { margin: 0; font-size: 32px; color: var(--cf-black); letter-spacing: -0.5px; }
.ticker-tag { background: #FFF0E0; color: var(--cf-orange); padding: 6px 16px; border-radius: 100px; font-size: 14px; font-weight: 700; letter-spacing: 0.5px; }

/* TABS STYLING */
.tabs {
    display: flex;
    padding: 0 50px;
    border-bottom: 1px solid #E5E5E5;
    background-color: #FAFAFA;
}
.tab-link {
    background: none;
    border: none;
    padding: 15px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--cf-gray-medium);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}
.tab-link:hover { color: var(--cf-orange); }
.tab-link.active { color: var(--cf-orange); border-bottom: 2px solid var(--cf-orange); font-weight: 600; background-color: #fff; }

.badge { background: #EEE; color: #666; font-size: 11px; padding: 2px 6px; border-radius: 10px; margin-left: 6px; }
.tab-link.active .badge { background: var(--cf-orange); color: white; }

.tab-content { padding: 40px 50px 50px 50px; animation: fadeIn 0.3s ease; }

/* CONTENT TYPOGRAPHY */
.content h1 { font-size: 24px; margin-top: 0; }
.content h2 { font-size: 20px; margin-top: 40px; margin-bottom: 15px; color: var(--cf-black); display: flex; align-items: center;}
.content h3 { font-size: 16px; font-weight: 700; margin-top: 30px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--cf-gray-medium); }
.content p { line-height: 1.7; font-size: 16px; color: #444; margin-bottom: 20px; }
.content ul { padding-left: 20px; margin-bottom: 20px; }
.content li { margin-bottom: 10px; line-height: 1.6; }
.content strong { color: #000; font-weight: 600; }
.content a { color: #0070f3; text-decoration: none; border-bottom: 1px dotted #0070f3; }
.content a:hover { border-bottom: 1px solid #0070f3; }

/* Subdomain List Styling */
.subdomain-list { list-style: none; padding: 0; columns: 2; }
.subdomain-list li { margin-bottom: 8px; font-size: 14px; break-inside: avoid; }
.subdomain-list a { color: #0070f3; text-decoration: none; }
.subdomain-list a:hover { text-decoration: underline; }

/* Components */
blockquote { background-color: #F9FAFB; border: 1px solid #E5E7EB; border-left: 4px solid var(--cf-orange); margin: 20px 0 30px 0; padding: 16px 20px; border-radius: 6px; color: var(--cf-gray-medium); font-size: 0.9rem; }

.copy-btn { background-color: #F4F4F5; border: 1px solid #E4E4E7; border-radius: 6px; cursor: pointer; padding: 6px; margin-left: 12px; color: #71717A; display: inline-flex; align-items: center; justify-content: center; transition: all 0.2s; vertical-align: middle; }
.copy-btn:hover { background-color: #FFFFFF; border-color: var(--cf-orange); color: var(--cf-orange); transform: translateY(-1px); box-shadow: 0 2px 4px rgba(0,0,0,0.05); }

@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* FOOTER */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    text-align: center;
    color: var(--cf-gray-light);
    font-size: 12px;
    z-index: 50;
    pointer-events: none; /* Allows clicking through if overlaps */
}
.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    pointer-events: auto;
}
.footer-link {
    color: var(--cf-gray-medium);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-link:hover { color: var(--cf-orange); }