

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--color-normal);
/*    background-color: var(--background-body); */
    background-image: var(--background-image-pink-gradient);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 70px; /* Add padding to prevent content from being hidden behind bottom nav */
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* div that sets the width for the page content */

.content-container {
    max-width: var(--max-width-main-content-desktop);
    margin: 0 auto;

}

/* Header */
.header {
    color: #1a202c;
    padding: 0px;
    background: var(--grey-900);
}

.header .container {
    display: flex;
    justify-content: space-between;
}

.header-content {
  max-width: var(--max-width-main-content-desktop);
  width: 100%;
  margin: 0 auto;
}
.header-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
}

.header-title a {
    color: white;
    text-decoration: none;
    transition: color 0.2s ease;
}

.header-title a:hover {
    color: #667eea;
}

.header-icon {
    font-size: 1.75rem;
}

.header-nav {
    display: flex;
    gap: 1rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Main Content */
.main {
    flex: 1;
    padding: 2rem 0;
}


/* Bottom Navigation Bar */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #000000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.bottom-nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.bottom-nav-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-decoration: none;
}

.bottom-nav-item:active {
    background-color: rgba(255, 255, 255, 0.2);
}

.bottom-nav-item i {
    font-size: 24px;
}

/* Add active state styling */
.bottom-nav-item.active {
    background-color: rgba(255, 255, 255, 0.15);
}

.bottom-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background-color: #667eea;
    border-radius: 0 0 3px 3px;
}

/* Developer terminal button styling */
.bottom-nav-item.developer.active {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    border-left: 1px solid #404040;
    border-right: 1px solid #404040;
    position: relative;
}

.bottom-nav-item.developer.active:hover {
    background: linear-gradient(135deg, #2d2d2d, #404040);
}

.bottom-nav-item.developer.active::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, #00ff00, #00cc00);
    border-radius: 1px;
}

.bottom-nav-item.developer.active i {
    color: #00ff00 !important;
}

/* Footer */
.footer {
    background-color: #2d3748;
    color: #a0aec0;
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.875rem;
    margin-top: auto;
    margin-bottom: 60px; /* Add margin to account for bottom nav */
}




/* Responsive Design */
@media (max-width: 768px) {
    .footer {
        display: none; /* Hide footer on mobile since we have bottom nav */
    }
    
    body {
        padding-bottom: 60px; /* Ensure content doesn't get hidden behind bottom nav */
    }
    
    .header .container {
        flex-direction: column;
        gap: 1rem;

    }

    .domain-page-title {
        font-size: 1.5rem;
    }

    .domains-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .domain-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .metadata-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 0.75rem;
    }

    .hero {
        padding: 2rem 1rem 1.5rem;
    }

    .domains-section,
    .topics-section,
    .metadata-section,
    .additional-section {
        padding: 1.5rem 1rem;
    }

    .domain-header {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .error-code {
        font-size: 3rem;
    }

    .domain-card {
        padding: 1rem;
    }

    body {
        overflow-x: hidden;
    }

    .container {
        overflow-x: hidden;
    }
}


/* Focus and Accessibility */
.btn:focus,
.nav-link:focus,
.breadcrumb-item:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

