/* Google Domains Style - Minimalist & Modern */
@import url('https://fonts.googleapis.com/css2?family=Google+Sans:wght@400;500;700&family=Roboto:wght@300;400;500&display=swap');

:root {
    --primary-color: #1a73e8;
    --primary-hover: #1765cc;
    --text-color: #202124;
    --text-secondary: #5f6368;
    --background-color: #ffffff;
    --surface-color: #f8f9fa;
    --border-color: #dadce0;
    --nav-height: 64px;
    --font-family: 'Google Sans', 'Roboto', Arial, sans-serif;
    --shadow-card: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
    --shadow-hover: 0 1px 3px 0 rgba(60,64,67,0.3), 0 4px 8px 3px rgba(60,64,67,0.15);
}

/* Dark Mode Variables */
body.dark-mode {
    --text-color: #e8eaed;
    --text-secondary: #9aa0a6;
    --background-color: #202124;
    --surface-color: #292a2d;
    --border-color: #3c4043;
    --shadow-card: 0 1px 2px 0 rgba(0,0,0,0.3), 0 1px 3px 1px rgba(0,0,0,0.15);
    --shadow-hover: 0 1px 3px 0 rgba(0,0,0,0.3), 0 4px 8px 3px rgba(0,0,0,0.15);
}

body.dark-mode .hero {
    background: linear-gradient(to bottom, #202124, #292a2d);
}

body.dark-mode .features {
    background-color: #202124;
}

body.dark-mode .footer {
    background-color: #171717;
    border-top: 1px solid #3c4043;
}

body.dark-mode .search-box {
    background: #292a2d;
    border-color: #3c4043;
}

body.dark-mode .search-box input {
    color: #e8eaed;
    background: transparent;
}

body.dark-mode .search-box input::placeholder {
    color: #9aa0a6;
}

body.dark-mode .navbar {
    background-color: #292a2d;
    border-bottom-color: #3c4043;
}

body.dark-mode .card,
body.dark-mode .tool-card {
    background: #292a2d;
    border-color: #3c4043;
}

body.dark-mode .result-card {
    background: #292a2d;
    border-color: #3c4043;
}

body.dark-mode .result-header {
    background-color: #202124;
    border-bottom-color: #3c4043;
}

body.dark-mode .raw-data {
    background-color: #171717;
    border-color: #3c4043;
    color: #9aa0a6;
}

body.dark-mode .footer-bottom {
    border-top-color: #3c4043;
}

body.dark-mode .auth-container {
    background: #292a2d;
    border-color: #3c4043;
}

body.dark-mode .auth-logo {
    color: #e8eaed;
}

body.dark-mode .auth-title {
    color: #e8eaed;
}

body.dark-mode .auth-subtitle {
    color: #9aa0a6;
}

body.dark-mode .form-group label {
    color: #e8eaed;
}

body.dark-mode .form-group input {
    background: #202124;
    border-color: #3c4043;
    color: #e8eaed;
}

body.dark-mode .form-group input:focus {
    border-color: #8ab4f8;
    background: #202124;
}

body.dark-mode .form-group input::placeholder {
    color: #9aa0a6;
}

body.dark-mode .error-message {
    background: #5f2120;
    color: #f28b82;
}

body.dark-mode .btn-outline:hover {
    background-color: #3c4043;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', Arial, sans-serif; /* Body text usually Roboto */
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .logo, .btn {
    font-family: 'Google Sans', sans-serif; /* Headings in Google Sans */
}

a {
    text-decoration: none;
    color: var(--primary-color);
    cursor: pointer;
}

ul {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navbar */
.navbar {
    height: var(--nav-height);
    background-color: #fff;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 18px;
    color: #5f6368;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 400;
}

.logo i {
    font-size: 20px;
    /* Google Blue */
    color: #4285F4; 
}

.logo span {
    font-weight: 500;
    color: var(--text-color);
}

/* Multi-colored text for Whoisgram */
.logo-text span:nth-child(1) { color: #4285F4; } /* W - Blue */
.logo-text span:nth-child(2) { color: #EA4335; } /* h - Red */
.logo-text span:nth-child(3) { color: #FBBC05; } /* o - Yellow */
.logo-text span:nth-child(4) { color: #4285F4; } /* i - Blue */
.logo-text span:nth-child(5) { color: #34A853; } /* s - Green */
.logo-text span:nth-child(6) { color: #EA4335; } /* g - Red */
.logo-text span:nth-child(7) { color: #4285F4; } /* r - Blue */
.logo-text span:nth-child(8) { color: #FBBC05; } /* a - Yellow */
.logo-text span:nth-child(9) { color: #34A853; } /* m - Green */

/* Keep logo colors in dark mode */
body.dark-mode .logo-text span:nth-child(1) { color: #4285F4; } /* W - Blue */
body.dark-mode .logo-text span:nth-child(2) { color: #EA4335; } /* h - Red */
body.dark-mode .logo-text span:nth-child(3) { color: #FBBC05; } /* o - Yellow */
body.dark-mode .logo-text span:nth-child(4) { color: #4285F4; } /* i - Blue */
body.dark-mode .logo-text span:nth-child(5) { color: #34A853; } /* s - Green */
body.dark-mode .logo-text span:nth-child(6) { color: #EA4335; } /* g - Red */
body.dark-mode .logo-text span:nth-child(7) { color: #4285F4; } /* r - Blue */
body.dark-mode .logo-text span:nth-child(8) { color: #FBBC05; } /* a - Yellow */
body.dark-mode .logo-text span:nth-child(9) { color: #34A853; } /* m - Green */

body.dark-mode .logo i {
    color: #4285F4; /* Keep globe icon blue in dark mode */
}

body.dark-mode .auth-logo i {
    color: #4285F4; /* Keep globe icon blue in auth pages */
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-color);
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Dark Mode Toggle */
.theme-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--text-secondary);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, transform 0.2s;
    border-radius: 50%;
}

.theme-toggle:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.theme-toggle .fa-moon {
    display: block;
}

.theme-toggle .bi-sun {
    display: none;
}

body.dark-mode .theme-toggle .fa-moon {
    display: none;
}

body.dark-mode .theme-toggle .bi-sun {
    display: block;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
    transition: background-color 0.2s, box-shadow 0.2s;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 1px 2px rgba(60,64,67,0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--border-color);
}

.btn-outline:hover {
    background-color: #f6fafe;
    border-color: var(--border-color);
}

/* Hero Section */
.hero {
    padding: 80px 0;
    display: flex;
    align-items: center;
    min-height: 500px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-content h1 {
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 400;
    letter-spacing: -0.5px;
}

.hero-content p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 480px;
}

.search-container {
    position: relative;
    max-width: 100%;
    margin-bottom: 24px;
}

.search-box {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px; /* Slightly rounded like Google inputs */
    padding: 8px 8px 8px 16px;
    transition: box-shadow 0.2s, border-color 0.2s;
    height: 56px;
}

.search-box:focus-within {
    box-shadow: 0 1px 6px rgba(32,33,36,0.28);
    border-color: transparent;
}

.search-icon {
    color: #9aa0a6;
    font-size: 20px;
    margin-right: 12px;
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    color: var(--text-color);
    font-family: 'Roboto', sans-serif;
}

.btn-search {
    height: 40px;
    padding: 0 24px;
    border-radius: 4px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Google Sans', sans-serif;
}

.btn-search:hover {
    background-color: var(--primary-hover);
}

.hero-image img {
    width: 100%;
    height: auto;
    max-width: 500px;
    display: block;
    margin: 0 auto;
}

/* Features / Tools Grid */
.features {
    padding: 64px 0;
    background-color: var(--surface-color);
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 16px;
    font-weight: 400;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 48px;
    font-size: 16px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.tool-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 32px;
    transition: box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tool-card:hover {
    box-shadow: var(--shadow-card);
    border-color: transparent;
}

.tool-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
    color: var(--primary-color);
    font-size: 32px;
}

.tool-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 500;
}

.tool-card p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    flex-grow: 1;
}

.tool-link {
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tool-link:hover {
    text-decoration: underline;
}

/* Results Section */
.results-container {
    margin-top: 32px;
    animation: fadeIn 0.3s ease;
}

.result-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.result-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f9fa;
}

.result-header h2 {
    font-size: 20px;
    font-weight: 500;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.status-active {
    background-color: #e6f4ea;
    color: #137333;
}

.status-available {
    background-color: #e8f0fe;
    color: #1967d2;
}

.result-body {
    padding: 24px;
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.data-group h4 {
    color: var(--text-secondary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    font-weight: 500;
}

.data-row {
    margin-bottom: 8px;
    font-size: 14px;
}

.data-label {
    font-weight: 500;
    color: var(--text-color);
}

.data-value {
    color: var(--text-secondary);
}

.raw-data {
    background-color: #f8f9fa;
    padding: 16px;
    border-radius: 4px;
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
    color: var(--text-secondary);
    overflow-x: auto;
    white-space: pre-wrap;
    border: 1px solid var(--border-color);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 48px 0;
    margin-top: auto;
    background: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.footer-col h4 {
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 16px;
    font-weight: 500;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a {
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-col a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-size: 20px;
    color: #9aa0a6;
    font-family: 'Google Sans', sans-serif;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 48px;
    }

    .hero-content p {
        margin: 0 auto 32px;
    }

    .hero-image {
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: var(--bg-color);
        flex-direction: column;
        padding: 24px;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        gap: 16px;
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-content h1 {
        font-size: 36px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .footer-links a {
        margin-left: 0 !important;
    }

    .nav-actions .btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    /* Hide register button on very small screens to save space if needed, 
       or keep it if it fits. Let's keep it but ensure flex wrap if needed */
    .nav-actions {
        gap: 8px;
    }
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-color);
    cursor: pointer;
    padding: 8px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}



.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.blog-post {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 48px 64px;
    box-shadow: var(--shadow-card);
    margin-bottom: 32px;
}

.blog-title {
    font-size: 36px;
    margin-bottom: 24px;
    color: var(--text-color);
    font-weight: 400;
    line-height: 1.3;
}

.blog-meta {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 32px;
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.blog-content {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-color);
}

.blog-content p {
    margin-bottom: 20px;
}

.blog-content h2 {
    font-size: 28px;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 500;
    color: var(--text-color);
}

.blog-content h3 {
    font-size: 22px;
    margin-top: 32px;
    margin-bottom: 16px;
    font-weight: 500;
    color: var(--text-color);
}

/* Blog Card Layout - New Design */
.blog-section {
    padding: 64px 0;
    min-height: 100vh;
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 40px 0;
}

.blog-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-card {
    display: flex;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.blog-card-image {
    width: 325px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    flex: 1;
    padding: 32px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.blog-card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #5f6368;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.blog-card-badge i {
    font-size: 12px;
}

.blog-card-badge span:first-of-type {
    font-size: 18px;
    font-weight: 600;
    color: #202124;
}

.blog-card-title {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 16px;
    color: #202124;
    line-height: 1.4;
    padding-right: 120px;
}

.blog-card-title:hover {
    color: var(--primary-color);
    cursor: pointer;
}

.blog-card-excerpt {
    color: #5f6368;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #5f6368;
    align-items: center;
}

.blog-card-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-card-meta i {
    font-size: 12px;
}

/* Dark Mode Adjustments for Blog Card */
body.dark-mode .blog-card {
    background: #292a2d;
}

body.dark-mode .blog-card-title {
    color: #e8eaed;
}

body.dark-mode .blog-card-excerpt {
    color: #9aa0a6;
}

body.dark-mode .blog-card-meta {
    color: #9aa0a6;
}

body.dark-mode .blog-card-badge {
    background: #202124;
    border-color: #3c4043;
    color: #9aa0a6;
}

body.dark-mode .blog-card-badge span:first-of-type {
    color: #e8eaed;
}

/* Responsive Blog Card */
@media (max-width: 768px) {
    .blog-card {
        flex-direction: column;
    }
    
    .blog-card-image {
        width: 100%;
        height: 200px;
    }
    
    .blog-card-content {
        padding: 24px 20px;
    }
    
    .blog-card-title {
        font-size: 18px;
        padding-right: 100px;
    }
    
    .blog-card-badge {
        top: 16px;
        right: 16px;
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .blog-card-badge span:first-of-type {
        font-size: 16px;
    }
    
    .blog-card-meta {
        flex-wrap: wrap;
        gap: 12px;
    }
}

.blog-content ul, .blog-content ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

.blog-content li {
    margin-bottom: 8px;
}

/* Back to Blog Button */
.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 32px;
    transition: gap 0.2s;
    text-decoration: none;
}

.back-to-blog:hover {
    gap: 12px;
}

.back-to-blog i {
    font-size: 12px;
}

/* Responsive Blog Post */
@media (max-width: 992px) {
    .blog-container {
        max-width: 100%;
        padding: 0 20px;
    }
    
    .blog-post {
        padding: 40px 48px;
    }
    
    .blog-title {
        font-size: 32px;
    }
    
    .blog-content {
        font-size: 16px;
    }
    
    .blog-content h2 {
        font-size: 26px;
        margin-top: 32px;
    }
    
    .blog-content h3 {
        font-size: 20px;
        margin-top: 28px;
    }
}

@media (max-width: 768px) {
    .blog-container {
        padding: 0 16px;
    }
    
    .blog-post {
        padding: 32px 24px;
    }
    
    .blog-title {
        font-size: 28px;
        line-height: 1.2;
    }
    
    .blog-content {
        font-size: 16px;
        line-height: 1.6;
    }
    
    .blog-content h2 {
        font-size: 24px;
        margin-top: 28px;
        margin-bottom: 16px;
    }
    
    .blog-content h3 {
        font-size: 19px;
        margin-top: 24px;
        margin-bottom: 12px;
    }
}

@media (max-width: 480px) {
    .blog-post {
        padding: 24px 16px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .blog-title {
        font-size: 24px;
    }
    
    .blog-content {
        font-size: 15px;
    }
    
    .blog-content h2 {
        font-size: 21px;
        margin-top: 24px;
    }
    
    .blog-content h3 {
        font-size: 18px;
        margin-top: 20px;
    }
    
    .blog-meta {
        font-size: 13px;
        gap: 12px;
    }
    
    .back-to-blog {
        margin-bottom: 20px;
    }
}

body.dark-mode .blog-post {
    background: #292a2d;
    border-color: #3c4043;
}

body.dark-mode .blog-title {
    color: #e8eaed;
}

body.dark-mode .blog-content {
    color: #e8eaed;
}

body.dark-mode .blog-content h2,
body.dark-mode .blog-content h3 {
    color: #e8eaed;
}
