/*
Theme Name: NRDS Theme
Theme URI: https://newlyregistereddomains.io
Description: Lightweight WordPress theme for Newly Registered Domains search and analytics platform.
Version: 1.0.0
Author: ABTdomain
Author URI: https://abtdomain.com
License: Proprietary
Text Domain: nrds-theme
*/

:root {
    /* Brand Colors — softened teal */
    --nrds-primary: #43CDB5;
    --nrds-primary-light: #65E0CE;
    --nrds-primary-lighter: #DDF8F3;
    --nrds-primary-dark: #0F8A7D;

    /* Text */
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-light: #999999;
    --text-white: rgba(255, 255, 255, 0.7);

    /* Backgrounds */
    --bg-white: #ffffff;
    --bg-gray: #f8f9fa;
    --bg-dark: #0a0a0a;
    --bg-footer-start: #0a0f0f;
    --bg-footer-end: #1a2525;

    /* Borders & Shadows */
    --border-light: #e5e7eb;
    --shadow-sm: 0 2px 4px rgba(90, 216, 196, 0.10);
    --shadow-md: 0 4px 12px rgba(90, 216, 196, 0.14);
    --shadow-lg: 0 8px 24px rgba(90, 216, 196, 0.18);

    /* Status */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;

    /* Animation */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Typography — system font stack, zero download */
    --font-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    --font-mono: 'SF Mono', 'Cascadia Code', 'Fira Code', 'Courier New', monospace;

    /* Layout */
    --max-width: 1400px;
    --nav-height: 50px;
}

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

/* === Base === */
body {
    font-family: var(--font-sans);
    background: linear-gradient(135deg, #fff 0%, #f0fffe 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    padding-top: var(--nav-height);
}

a {
    text-decoration: none;
    color: inherit;
}

/* === Geometric Background === */
.geometric-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
    opacity: 0.03;
}
.geometric-bg::before,
.geometric-bg::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border: 2px solid var(--nrds-primary);
}
.geometric-bg::before {
    top: -300px;
    left: -300px;
    transform: rotate(45deg);
}
.geometric-bg::after {
    bottom: -300px;
    right: -300px;
    transform: rotate(45deg);
    border-radius: 50%;
}

/* === Layout === */
.main-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 60px 40px;
}

/* === Navigation === */
.nav-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    z-index: 9999;
    box-shadow: 0 1px 3px rgba(54, 209, 182, 0.08);
    transition: var(--transition);
}
.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    height: 100%;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--nrds-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
    padding-right: 30px;
    border-right: 1px solid var(--border-light);
    margin-right: 30px;
    transition: var(--transition);
}
.logo:hover {
    color: var(--nrds-primary-dark);
}
.nav-links {
    display: flex;
    gap: 5px;
    align-items: center;
    flex: 1;
}
.nav-link {
    padding: 8px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 6px;
    transition: var(--transition);
}
.nav-link:hover {
    background: var(--nrds-primary-lighter);
    color: var(--nrds-primary);
}

/* === Hero === */
.hero-section {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 40px;
}
.hero-title {
    font-size: 56px;
    font-weight: 600;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--nrds-primary) 0%, var(--nrds-primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    padding-bottom: 10px;
    display: inline-block;
}
.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 0;
    margin-bottom: 15px;
}

/* === Search === */
.search-section {
    max-width: 1200px;
    margin: 0 auto 80px;
}
.search-container {
    position: relative;
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
}
.search-input {
    width: 100%;
    padding: 24px 180px 24px 30px;
    font-size: 18px;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text-primary);
    font-weight: 500;
    font-family: var(--font-sans);
}
.search-input::placeholder {
    color: var(--text-light);
    font-weight: 400;
}
.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--nrds-primary) 0%, var(--nrds-primary-dark) 100%);
    color: #fff;
    border: none;
    padding: 16px 36px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.5px;
}
.search-btn:hover {
    transform: translateY(-50%) scale(1.02);
    box-shadow: 0 4px 16px rgba(10, 186, 181, 0.3);
}
.tld-filter {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}
.tld-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
}
.tld-option input[type="radio"] {
    margin-right: 6px;
    cursor: pointer;
}
.tld-option:hover {
    color: var(--nrds-primary);
}
.tld-option input[type="radio"]:checked + span {
    color: var(--nrds-primary);
    font-weight: 600;
}

/* === Search Results === */
.search-results {
    margin-top: 40px;
    animation: slideUp 0.5s ease;
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 10px;
}
.results-count {
    font-size: 14px;
    color: var(--text-secondary);
}
.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.result-item {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 20px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 160px;
}
.result-item:hover {
    border-color: var(--nrds-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* === Domain Display === */
.domain-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    word-break: break-all;
    font-family: var(--font-mono);
}
.domain-date {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 12px;
}
.domain-meta {
    font-size: 14px;
    color: var(--text-primary);
    margin-top: 8px;
}
.domain-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}
.domain-action {
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
    flex: 1;
    border: none;
    cursor: pointer;
}
.price-action {
    background: #ff7a59;
    color: #fff;
}
.price-action:hover {
    background: #e6693f;
}
.whois-action {
    background: var(--nrds-primary-lighter);
    color: var(--nrds-primary-dark);
}
.whois-action:hover {
    background: var(--nrds-primary);
    color: #fff;
}

/* === Freshness Indicator === */
.freshness {
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.freshness .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.freshness .dot.filled {
    background: currentColor;
}
.freshness .dot.empty {
    border: 2px solid currentColor;
    box-sizing: border-box;
}
.stars-5, .stars-4, .stars-3 { color: #e74c3c; }
.stars-2, .stars-1, .stars-0 { color: var(--text-primary); }
.highlight {
    background: #fff3cd;
    color: #e74c3c;
    font-weight: 700;
    padding: 0 2px;
    border-radius: 2px;
}

/* === Domain Showcase === */
.domains-showcase {
    margin-bottom: 80px;
}
.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.showcase-column {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}
.showcase-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--nrds-primary-lighter);
}
.showcase-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}
.tld-badge {
    padding: 4px 12px;
    background: linear-gradient(135deg, var(--nrds-primary) 0%, var(--nrds-primary-dark) 100%);
    color: #fff;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.showcase-scroll {
    height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}
.showcase-scroll::-webkit-scrollbar { width: 6px; }
.showcase-scroll::-webkit-scrollbar-track { background: var(--bg-gray); border-radius: 3px; }
.showcase-scroll::-webkit-scrollbar-thumb { background: var(--nrds-primary); border-radius: 3px; }
.showcase-item {
    padding: 15px;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.showcase-item:last-child { border-bottom: none; }
.showcase-item:hover {
    background: var(--nrds-primary-lighter);
    padding-left: 20px;
}
.showcase-domain {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
}
.showcase-date {
    font-size: 12px;
    color: var(--text-light);
    white-space: nowrap;
}
.clickable-domain {
    cursor: pointer;
    transition: color 0.3s;
}
.clickable-domain:hover {
    color: var(--nrds-primary);
    text-decoration: underline;
}

/* === Stats Grid === */
.stats-section {
    margin-bottom: 80px;
}
.stats-header {
    text-align: center;
    margin-bottom: 50px;
}
.stats-title {
    font-size: 36px;
    font-weight: 300;
    color: var(--text-primary);
    margin-bottom: 15px;
}
.stats-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 14px;
}
.stat-card {
    background: var(--bg-white);
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 28px 18px;
    text-align: center;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--nrds-primary) 0%, var(--nrds-primary-light) 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.stat-card:hover {
    border-color: var(--nrds-primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.stat-card:hover::before {
    transform: scaleX(1);
}
.stat-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 14px;
    background: var(--nrds-primary-lighter);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}
.stat-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--nrds-primary);
    fill: none;
}
.stat-card:hover .stat-icon {
    background: linear-gradient(135deg, var(--nrds-primary) 0%, var(--nrds-primary-dark) 100%);
}
.stat-card:hover .stat-icon svg {
    stroke: #fff;
}
.stat-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.stat-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* === Data Stats Line === */
.data-stats-line {
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}
.data-stats-line .separator {
    color: var(--border-light);
}
.data-stats-line strong {
    color: var(--nrds-primary);
    font-size: 16px;
    font-weight: 600;
}

/* === FAQ === */
.faq-section {
    margin-bottom: 40px;
    padding: 40px;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}
.faq-header {
    text-align: center;
    margin-bottom: 50px;
}
.faq-title {
    font-size: 36px;
    font-weight: 300;
    color: var(--text-primary);
    margin-bottom: 15px;
}
.faq-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
}
.faq-container {
    max-width: 100%;
    margin: 0 auto;
}
.faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}
.faq-item:hover {
    border-color: var(--nrds-primary);
    box-shadow: var(--shadow-md);
}
.faq-question {
    width: 100%;
    padding: 20px 25px;
    background: var(--bg-gray);
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition);
    text-align: left;
    font-family: var(--font-sans);
}
.faq-question:hover {
    background: var(--nrds-primary-lighter);
}
.faq-item.active .faq-question {
    background: var(--nrds-primary);
    color: #fff;
}
.faq-icon {
    font-size: 24px;
    font-weight: 300;
    transition: transform 0.3s;
    color: var(--nrds-primary);
}
.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: #fff;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: var(--bg-white);
}
.faq-item.active .faq-answer {
    max-height: 500px;
    transition: max-height 0.3s ease-in;
}
.faq-answer p {
    padding: 25px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 15px;
}

/* === CTA Section === */
.cta-single {
    margin-top: 50px;
    text-align: center;
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: 20px;
    padding: 40px 30px;
    transition: var(--transition);
}
.cta-single:hover {
    border-color: var(--nrds-primary);
    box-shadow: var(--shadow-lg);
}
.cta-single-line {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 12px;
}
.cta-single-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.3;
}
.cta-single-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 25px;
}
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
    letter-spacing: 0.5px;
}
.cta-btn.primary {
    background: linear-gradient(135deg, var(--nrds-primary) 0%, var(--nrds-primary-dark) 100%);
    color: #fff;
    box-shadow: var(--shadow-md);
}
.cta-btn.primary:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(10, 186, 181, 0.4);
}
.cta-btn.secondary {
    background: #ff7a59;
    color: #fff;
    box-shadow: var(--shadow-md);
}
.cta-btn.secondary:hover {
    background: #e6693f;
    transform: scale(1.05);
}
.cta-btn .btn-arrow {
    font-size: 20px;
    transition: transform 0.3s;
}
.cta-btn:hover .btn-arrow {
    transform: translateX(5px);
}

/* === Footer === */
.footer {
    background: linear-gradient(135deg, var(--bg-footer-start) 0%, var(--bg-footer-end) 100%);
    color: white;
    padding: 60px 0 30px;
    margin-top: 100px;
}
.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
}
.footer-logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--nrds-primary);
    margin-bottom: 20px;
}
.footer-logo a {
    color: var(--nrds-primary);
    text-decoration: none;
    transition: var(--transition);
}
.footer-logo a:hover {
    color: var(--nrds-primary-light);
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.footer-link {
    color: var(--text-white);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}
.footer-link:hover {
    color: var(--nrds-primary);
}
.footer-affiliate {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    margin: 30px auto;
    max-width: 900px;
    text-align: left;
}
.footer-affiliate p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    line-height: 1.6;
    margin: 0 0 10px 0;
}
.footer-affiliate p:last-child { margin-bottom: 0; }
.footer-affiliate strong { color: rgba(255, 255, 255, 0.8); }
.footer-affiliate a { color: var(--nrds-primary); text-decoration: none; }
.footer-affiliate a:hover { text-decoration: underline; }
.footer-affiliate em { font-style: italic; opacity: 0.8; }
.footer-methodology {
    color: rgba(255, 255, 255, 0.3);
    font-size: 11px;
    margin-top: 15px;
    line-height: 1.4;
}
.footer-methodology p {
    margin: 0;
}
.footer-copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    margin-top: 20px;
}

/* === Empty State === */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}
.empty-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    opacity: 0.3;
}
.empty-icon svg {
    width: 48px;
    height: 48px;
}
.empty-text {
    font-size: 16px;
    margin-bottom: 10px;
}
.empty-subtext {
    font-size: 14px;
    color: var(--text-light);
}

/* === Loading === */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--nrds-primary-lighter);
    border-top-color: var(--nrds-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* === Responsive === */
@media (max-width: 1200px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .results-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .main-container { padding: 40px 20px; }
    .hero-title { font-size: 36px; }
    .hero-subtitle { font-size: 16px; }
    .search-input { padding: 20px 140px 20px 20px; font-size: 16px; }
    .search-btn { padding: 12px 24px; font-size: 14px; }
    .showcase-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; gap: 20px; }
    .stat-card { padding: 30px 20px; }
    .results-grid { grid-template-columns: 1fr; }
    .domain-name { font-size: 14px; }
    .faq-section { padding: 40px 20px; margin: 40px 0; }
    .faq-title { font-size: 28px; }
    .faq-question { padding: 15px 20px; font-size: 14px; }
    .faq-answer p { padding: 20px; font-size: 14px; }
    .cta-single { padding: 30px 20px; margin-top: 30px; }
    .cta-single-title { font-size: 20px; }
    .cta-btn { padding: 14px 28px; font-size: 15px; }

    /* Nav mobile */
    .nav-container { padding: 0 20px; }
    .nav-links { display: none; }
    .logo { border-right: none; padding-right: 0; margin-right: 0; }

    /* Footer mobile */
    .footer { padding: 40px 0 20px; }
    .footer-content { padding: 0 20px; }
    .footer-links { flex-direction: column; gap: 15px; }
    .footer-affiliate { padding: 15px; margin: 20px auto; }
    .footer-affiliate p { font-size: 11px; }

    /* Data stats mobile */
    .data-stats-line { flex-direction: column; gap: 8px; font-size: 13px; }
    .data-stats-line .separator { display: none; }
    .data-stats-line strong { font-size: 15px; display: block; margin-top: 5px; }
    .tld-filter { gap: 10px; margin-top: 12px; padding: 0 10px; }
    .tld-option { font-size: 13px; flex: 1; justify-content: center; }
}
