/* ========================================
   Base Styles - NewlyRegisteredDomains.io
   ======================================== */

/* CSS Variables */
:root {
    --nrds-blue: #36D1B6;
    --nrds-light: #4DE6CA;
    --nrds-lighter: #CFF9F1;
    --nrds-dark: #02786F;
    --text-primary: #1a1a1a;
    --text-secondary: #666;
    --text-light: #999;
    --bg-white: #fff;
    --bg-gray: #f8f9fa;
    --bg-dark: #0a0a0a;
    --border-light: #e5e7eb;
    --shadow-sm: 0 2px 4px rgba(54, 209, 182, 0.08);
    --shadow-md: 0 4px 12px rgba(54, 209, 182, 0.12);
    --shadow-lg: 0 8px 24px rgba(54, 209, 182, 0.16);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 12px;
}

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

/* Body */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, #fff 0%, #f0fffe 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    padding-top: 50px;
}

/* Links */
a {
    text-decoration: none;
    color: var(--nrds-blue);
    transition: var(--transition);
}

a:hover {
    color: var(--nrds-dark);
}

/* Main Container */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px;
}

/* 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-blue);
}

.geometric-bg::before {
    top: -300px;
    left: -300px;
    transform: rotate(45deg);
}

.geometric-bg::after {
    bottom: -300px;
    right: -300px;
    transform: rotate(45deg);
    border-radius: 50%;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 50px;
}

.page-title {
    font-size: 56px;
    font-weight: 600;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--nrds-blue) 0%, var(--nrds-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    display: inline-block;
}

.page-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

/* Hero Section */
.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-blue) 0%, var(--nrds-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;
}

/* Data Notice */
.data-notice {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: var(--nrds-lighter);
    border-radius: 25px;
    font-size: 14px;
    color: var(--text-secondary);
}

.data-notice .date {
    color: var(--nrds-dark);
    font-weight: 600;
}

.data-notice.warning-notice {
    background: #fff3cd;
    color: #856404;
}

/* 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-blue);
    font-size: 16px;
    font-weight: 600;
}

/* Page Nav Links */
.page-nav-links {
    margin-top: 20px;
    font-size: 0.95em;
}

.page-nav-links a {
    color: var(--nrds-blue);
    text-decoration: none;
    margin: 0 10px;
    font-weight: 500;
}

.page-nav-links a:hover {
    color: var(--nrds-dark);
    text-decoration: underline;
}

/* Section */
.section {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    margin-bottom: 40px;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-title {
    font-size: 32px;
    font-weight: 300;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.section-desc {
    font-size: 16px;
    color: var(--text-secondary);
}

/* Content Section (for legal pages) */
.content-section {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

.content-section .section-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--nrds-lighter);
}

.section-content {
    color: var(--text-secondary);
    line-height: 1.8;
}

.section-content p {
    margin-bottom: 15px;
}

.section-content ul,
.section-content ol {
    margin-left: 25px;
    margin-bottom: 15px;
}

.section-content li {
    margin-bottom: 10px;
}

/* Highlight Box */
.highlight-box {
    background: var(--nrds-lighter);
    border-left: 4px solid var(--nrds-blue);
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.highlight-box strong {
    color: var(--nrds-dark);
}

/* Warning Box */
.warning-box {
    background: #fff4e5;
    border-left: 4px solid #ff9800;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.warning-box strong {
    color: #e65100;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-text {
    font-size: 16px;
    margin-bottom: 10px;
}

.empty-subtext {
    font-size: 14px;
    color: var(--text-light);
}

/* Loading Spinner */
.loading,
.spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid var(--nrds-lighter);
    border-top-color: var(--nrds-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Back to Top Button */
#backToTop {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--nrds-blue) 0%, var(--nrds-dark) 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(54, 209, 182, 0.3);
    z-index: 1000;
    transition: var(--transition);
    font-size: 24px;
}

#backToTop:hover {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .main-container {
        padding: 40px 20px;
    }

    .page-title,
    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle,
    .page-subtitle {
        font-size: 16px;
    }

    .section {
        padding: 25px;
    }

    .content-section {
        padding: 25px;
    }

    .data-stats-line {
        flex-direction: column;
        gap: 8px;
    }

    .data-stats-line .separator {
        display: none;
    }
}