/* Atlas Darknet Market - Main Stylesheet */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background-color: #0a0a0a;
    font-size: 16px;
}

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

/* Header Styles */
header {
    background-color: #1a1a1a;
    padding: 1rem 0;
    border-bottom: 2px solid #2a2a2a;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
}

/* Navigation Styles */
nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: #b0b0b0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover,
nav a.active {
    color: #fff;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    padding: 4rem 0;
    text-align: center;
    border-bottom: 2px solid #3a3a3a;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.hero p {
    font-size: 1.2rem;
    color: #b0b0b0;
    max-width: 800px;
    margin: 0 auto;
}

/* Main Content */
main {
    padding: 3rem 0;
}

section {
    margin-bottom: 3rem;
}

h1 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

h2 {
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #fff;
    border-bottom: 2px solid #2a2a2a;
    padding-bottom: 0.5rem;
}

h3 {
    font-size: 1.4rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    color: #f0f0f0;
}

p {
    margin-bottom: 1rem;
    text-align: justify;
}

ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

strong {
    color: #fff;
    font-weight: 600;
}

/* Feature Grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.feature-card {
    background-color: #1a1a1a;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #2a2a2a;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: #4a4a4a;
}

.feature-card h3 {
    margin-top: 0;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.content-image {
    margin: 2rem 0;
    text-align: center;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    padding: 2rem 0;
    border-top: 2px solid #2a2a2a;
    text-align: center;
    margin-top: 4rem;
}

footer p {
    color: #808080;
    margin: 0;
}

/* Links */
a {
    color: #6a9fb5;
    transition: color 0.3s ease;
}

a:hover {
    color: #8ab8cc;
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
}

/* Ensure the parent container allows its children to size correctly */
.access-portal {
    /* If it's a flex container, ensure it allows children to take full width */
    display: block; /* Or flex, but ensure width: 100% is effective */
    width: 100%; /* Ensure the container itself takes full available width */
    max-width: 100%; /* Prevent it from expanding beyond its parent */
    overflow: hidden; /* Important: Prevents children from breaking out of this container */
    padding: 1rem 0; /* Example padding, adjust as needed */
}

.portal-link-input {
    display: block; /* Make it a block-level element */
    width: 100%; /* Crucial: Make the input take 100% of its parent's width */
    box-sizing: border-box; /* Include padding and border in the element's total width */
    padding: 10px; /* Adjust padding as needed for visual comfort */
    border: 1px solid var(--border-color); /* Use your defined border color */
    border-radius: 5px; /* Slightly rounded corners for aesthetics */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Inherit font for consistency */
    font-size: 30px; /* Consistent font size */
    color: var(--text-dark); /* Consistent text color */
    background-color: var(--light-bg); /* Consistent background */

    /* These are key for handling long text without breaking layout */
    white-space: nowrap; /* Keep text on a single line */
    overflow-x: auto; /* Add horizontal scrollbar if content overflows */
    -webkit-overflow-scrolling: touch; /* Improves scrolling on iOS devices */
    min-width: 0; /* Allows the input to shrink if necessary within flex/grid contexts */
}

/* Optional: Adjust other elements to ensure they don't push the layout */
.portal-title,
.portal-status,
p {
    max-width: 100%; /* Ensure these elements don't cause horizontal overflow */
    word-break: break-word; /* Break long words if necessary */
    margin-bottom: 0.5rem; /* Add some spacing */
}
