/*
 * Drughub Market - Neon Orange on Black Theme CSS
 * Redesigned for high contrast and "neon orange" aesthetic.
 */

/* --- 1. GLOBAL STYLES & RESET --- */
:root {
    /* Neon Orange Theme Variables */
    --primary-bg: #000000; /* Pure Black Background */
    --secondary-bg: #0a0a0a; /* Slightly lighter black for contrast */
    --accent-primary: #ff8c00; /* Deep Neon Orange */
    --accent-secondary: #ff4500; /* Brighter Red-Orange for hover/active */
    --accent-tertiary: #ffc04d; /* Lighter Orange for secondary glow */
    --text-primary: #f0f0f0; /* Off-white text */
    --text-secondary: #aaaaaa; /* Grey text */
    --success: #32cd32; /* Lime Green for success */
    --warning: #ffd700; /* Gold for warning */
    --danger: #ff0000; /* Red for danger */
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
    --font-mono: 'Fira Code', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--primary-bg);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* --- 2. TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5em;
    /* Neon Glow Effect */
    text-shadow: 0 0 5px var(--accent-primary), 0 0 10px var(--accent-primary), 0 0 20px rgba(255, 140, 0, 0.5);
}

h1 { font-size: 3.5rem; }
h2 { 
    font-size: 2.5rem; 
    border-bottom: 2px solid var(--accent-secondary); 
    padding-bottom: 10px; 
    box-shadow: 0 2px 5px -2px var(--accent-secondary); /* Subtle bottom glow */
}
h3 { font-size: 1.8rem; color: var(--accent-secondary); }

p {
    margin-bottom: 1.5em;
    font-size: 1.1rem;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.3s, text-shadow 0.3s;
}

a:hover {
    color: var(--accent-secondary);
    text-shadow: 0 0 8px var(--accent-secondary);
}

strong {
    color: var(--accent-primary);
    font-weight: 700;
    text-shadow: 0 0 3px var(--accent-primary);
}

/* --- 3. LAYOUT & STRUCTURE --- */
#wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

#main {
    padding-top: 150px; /* Space for fixed header */
}

.content-section {
    padding: 80px 0;
    border-bottom: 1px solid var(--secondary-bg);
}

.content-section:last-child {
    border-bottom: none;
}

/* --- 4. HEADER & NAVIGATION (FIXED AND NEON ORANGE) --- */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95); /* Semi-transparent pure black background */
    backdrop-filter: blur(5px);
    z-index: 1000;
    padding: 20px 0;
    text-align: center;
    border-bottom: 2px solid var(--accent-primary);
    box-shadow: 0 0 15px var(--accent-primary);
}

#header h1 {
    font-size: 2.5rem;
    margin: 0;
    line-height: 1;
}

#header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 5px;
}

#nav {
    /* Navigation is now part of the fixed header structure for better visibility */
    position: sticky; /* Sticky to stay under the header */
    top: 100px; /* Adjust based on header height */
    background-color: var(--secondary-bg);
    padding: 10px 0;
    border-top: 1px solid var(--accent-secondary);
    border-bottom: 1px solid var(--accent-secondary);
    margin-top: 0; /* Removed margin */
    z-index: 999;
    box-shadow: 0 0 10px var(--accent-secondary);
}

.nav-menu {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.nav-menu a {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    padding: 5px 10px;
    color: var(--accent-tertiary); /* Lighter orange for base state */
    border: 1px solid transparent;
    transition: all 0.3s;
    text-shadow: 0 0 5px rgba(255, 192, 77, 0.5);
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--accent-primary); /* Deep orange on hover */
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-primary), 0 0 20px rgba(255, 140, 0, 0.5);
    transform: scale(1.05);
}

/* --- 5. BUTTONS & ACTIONS --- */
.actions {
    list-style: none;
    padding: 0;
    margin: 2em 0 0 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.button {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--accent-primary);
    color: var(--primary-bg);
    text-transform: uppercase;
    font-family: var(--font-heading);
    font-weight: 700;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 15px var(--accent-primary);
}

.button:hover {
    background-color: var(--accent-secondary);
    color: var(--primary-bg);
    box-shadow: 0 0 20px var(--accent-secondary), 0 0 40px var(--accent-secondary);
    transform: translateY(-2px);
}

/* --- 6. LIST STYLES (NEON ORANGE) --- */
ul, ol {
    list-style: none; /* Remove default bullet/number */
    padding-left: 0;
    margin: 1.5em 0;
}

li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: var(--text-primary);
}

/* Custom Neon Orange Bullet Point */
li::before {
    content: "»"; /* Custom bullet character */
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-size: 1.5rem;
    line-height: 1;
    font-weight: bold;
    text-shadow: 0 0 5px var(--accent-primary);
    transition: text-shadow 0.3s;
}

li:hover::before {
    text-shadow: 0 0 10px var(--accent-secondary), 0 0 20px var(--accent-secondary);
}

/* Specific styling for nested lists if needed */
ul ul, ol ul, ul ol, ol ol {
    margin-top: 5px;
    margin-bottom: 5px;
    padding-left: 20px;
}

/* --- 7. HERO SECTION SPECIFIC --- */
#hero {
    text-align: center;
    padding: 100px 0;
    /* Keeping a dark background for the neon effect */
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('images/cyber-bg.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    overflow: hidden;
}

#hero h2 {
    color: var(--text-primary);
    text-shadow: none;
    border-bottom: none;
    font-size: 3rem;
}

/* Glitch Effect Simulation (Simple CSS version) */
.glitch-text {
    position: relative;
    font-size: 4rem;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--text-primary);
    text-shadow: 0 0 10px var(--accent-primary);
    animation: neon-pulse 1.5s infinite alternate;
}

@keyframes neon-pulse {
    from { text-shadow: 0 0 5px var(--accent-primary), 0 0 10px var(--accent-primary); }
    to { text-shadow: 0 0 10px var(--accent-secondary), 0 0 20px var(--accent-secondary); }
}

/* --- 8. OFFICIAL MIRRORS SECTION (CRITICAL) --- */
.section-title.neon-glow {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: var(--accent-primary);
    text-shadow: 0 0 10px var(--accent-primary), 0 0 20px rgba(255, 140, 0, 0.5);
}

.intro-text {
    max-width: 800px;
    margin: 0 auto 40px auto;
    text-align: center;
    color: var(--text-secondary);
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.resource-card {
    background-color: var(--secondary-bg);
    padding: 30px;
    border-radius: 10px;
    border: 2px solid var(--accent-tertiary);
    box-shadow: 0 0 15px rgba(255, 192, 77, 0.3);
    transition: all 0.3s ease-in-out;
    text-align: center;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px var(--accent-primary);
}

.resource-card.primary {
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(255, 140, 0, 0.5);
}

.resource-card.primary:hover {
    box-shadow: 0 0 25px var(--accent-primary);
}

.resource-icon {
    font-size: 2.5rem;
    color: var(--accent-secondary);
    margin-bottom: 15px;
    text-shadow: 0 0 10px var(--accent-secondary);
}

.resource-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-primary);
    text-shadow: none;
}

.resource-card p {
    font-family: var(--font-mono);
    color: var(--accent-primary);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.resource-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background-color: var(--accent-primary);
    color: var(--primary-bg);
    border-radius: 5px;
    font-weight: 700;
    transition: all 0.3s;
    margin-top: 10px;
}

.resource-link:hover {
    background-color: var(--accent-secondary);
    color: var(--primary-bg);
    text-shadow: none;
}

.link-text {
    margin-right: 10px;
}

.resource-features {
    margin-top: 20px;
}

.feature-tag {
    display: inline-block;
    padding: 5px 10px;
    margin: 5px;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    background-color: var(--primary-bg);
    border: 1px solid var(--text-secondary);
    color: var(--text-secondary);
}

.feature-tag.online {
    background-color: var(--success);
    color: var(--primary-bg);
    border-color: var(--success);
}

.feature-tag.verified {
    background-color: var(--accent-tertiary);
    color: var(--primary-bg);
    border-color: var(--accent-tertiary);
}

/* --- 9. FEATURE CARDS & SECURITY --- */
.link-card {
    background-color: var(--secondary-bg);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--accent-primary);
    box-shadow: 0 0 15px rgba(255, 140, 0, 0.2);
}

.mirror-list-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.link-item {
    background-color: var(--primary-bg);
    padding: 20px;
    border: 1px solid var(--accent-secondary);
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
}

.link-item:hover {
    box-shadow: 0 0 15px var(--accent-secondary);
    transform: translateY(-2px);
}

.link-address {
    font-family: var(--font-mono);
    color: var(--accent-primary);
    font-size: 0.95rem;
    word-break: break-all;
    flex: 1;
}

.copy-button {
    background-color: var(--accent-primary);
    color: var(--primary-bg);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 700;
    white-space: nowrap;
    transition: all 0.3s;
    box-shadow: 0 0 10px var(--accent-primary);
}

.copy-button:hover {
    background-color: var(--accent-secondary);
    box-shadow: 0 0 15px var(--accent-secondary);
    transform: scale(1.05);
}

.security-placeholder {
    background-color: var(--primary-bg);
    padding: 30px;
    border-left: 5px solid var(--accent-tertiary);
    border-radius: 5px;
}

.security-placeholder h4 {
    color: var(--accent-tertiary);
    margin-bottom: 15px;
}

.security-placeholder ul {
    list-style: none;
    padding-left: 0;
    margin: 15px 0;
}

.security-placeholder li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-primary);
}

.security-placeholder li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--accent-secondary);
}

.security-placeholder .note {
    margin-top: 20px;
    padding: 15px;
    background-color: var(--secondary-bg);
    border-left: 3px solid var(--accent-secondary);
    font-style: italic;
    color: var(--text-secondary);
}

/* --- 10. FEATURE CARDS & SECURITY (Continued) --- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background-color: var(--secondary-bg);
    padding: 30px;
    border-radius: 10px;
    border: 2px solid var(--accent-tertiary);
    box-shadow: 0 0 15px rgba(255, 192, 77, 0.3);
    transition: all 0.3s ease-in-out;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px var(--accent-primary);
}

.feature-card h3 {
    color: var(--accent-primary);
    text-shadow: 0 0 5px var(--accent-primary);
}

.feature-card i {
    font-size: 2rem;
    color: var(--accent-secondary);
    margin-bottom: 15px;
    text-shadow: 0 0 10px var(--accent-secondary);
}

/* --- 11. FAQ STYLES (Improved for Accordion) --- */
.faq-container {
    max-width: 900px;
    margin: 40px auto;
}

.faq-item {
    background-color: var(--secondary-bg);
    border: 1px solid var(--accent-tertiary);
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(255, 192, 77, 0.1);
}

.faq-item h4 {
    padding: 15px 20px;
    margin: 0;
    cursor: pointer;
    color: var(--accent-tertiary);
    font-size: 1.2rem;
    text-shadow: none;
    transition: background-color 0.3s, color 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item h4:hover {
    background-color: rgba(255, 140, 0, 0.1);
    color: var(--accent-primary);
}

.faq-item h4::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-primary);
    transition: transform 0.3s;
}

.faq-item.active h4::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    background-color: var(--primary-bg);
    border-top: 1px solid var(--secondary-bg);
}

.faq-answer p {
    padding: 15px 0;
    margin: 0;
    color: var(--text-secondary);
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Large enough value for smooth transition */
    padding: 0 20px 15px 20px;
}

/* --- 12. FOOTER --- */
#footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid var(--secondary-bg);
    margin-top: 40px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

#footer a {
    color: var(--accent-tertiary);
}

#footer a:hover {
    color: var(--accent-primary);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    #header {
        padding: 10px 0;
    }
    
    #main {
        padding-top: 120px;
    }
    
    #nav {
        top: 80px;
    }
    
    .nav-menu {
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .content-section {
        padding: 40px 0;
    }
}

/* --- 7.1 HERO STATS GRID --- */
.stats-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 40px auto;
    max-width: 1000px;
}

.stat-card {
    background-color: var(--secondary-bg);
    padding: 20px 30px;
    border-radius: 8px;
    border: 2px solid var(--accent-primary);
    box-shadow: 0 0 15px rgba(255, 140, 0, 0.5);
    text-align: center;
    flex: 1 1 200px; /* Allows cards to grow and shrink, minimum width 200px */
    transition: all 0.3s ease-in-out;
}

.stat-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 0 25px var(--accent-secondary), 0 0 40px rgba(255, 69, 0, 0.5);
}

.stat-card .number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    text-shadow: 0 0 10px var(--accent-primary);
    line-height: 1.2;
}

.stat-card .label {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

@media (max-width: 768px) {
    .stat-card {
        flex: 1 1 45%;
    }
}

@media (max-width: 480px) {
    .stat-card {
        flex: 1 1 100%;
    }
}
