/*
 * 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: 20px;
}

.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: relative;
    background: rgba(0, 0, 0, 0.95);
    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;
}

/* === SIDEBAR NAVIGATION === */
.menu-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1100;
    background: var(--secondary-bg);
    border: 2px solid var(--accent-primary);
    border-radius: 8px;
    padding: 12px 14px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    box-shadow: 0 0 15px var(--accent-primary);
    transition: all 0.3s;
}

.menu-toggle:hover {
    box-shadow: 0 0 25px var(--accent-secondary);
    border-color: var(--accent-secondary);
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--accent-primary);
    border-radius: 2px;
    transition: all 0.3s;
}

.menu-toggle:hover span {
    background: var(--accent-secondary);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100%;
    background: linear-gradient(180deg, var(--secondary-bg) 0%, var(--primary-bg) 100%);
    z-index: 1100;
    transition: left 0.3s ease;
    border-right: 2px solid var(--accent-primary);
    box-shadow: 0 0 30px var(--accent-primary);
    overflow-y: auto;
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--accent-secondary);
}

.sidebar-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
}

.sidebar-close {
    background: none;
    border: none;
    color: var(--accent-primary);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: all 0.3s;
}

.sidebar-close:hover {
    color: var(--accent-secondary);
    text-shadow: 0 0 10px var(--accent-secondary);
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    padding: 20px 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--accent-tertiary);
    border-left: 3px solid transparent;
    transition: all 0.3s;
}

.sidebar-menu a:hover, .sidebar-menu a.active {
    color: var(--accent-primary);
    background: rgba(255, 140, 0, 0.1);
    border-left-color: var(--accent-primary);
    text-shadow: 0 0 10px var(--accent-primary);
}

.sidebar-menu a i {
    font-size: 1.2rem;
    width: 25px;
    text-align: center;
}

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

/* === ENHANCED RESPONSIVE DESIGN === */

/* Large tablets and small desktops */
@media (max-width: 1024px) {
    #wrapper {
        padding: 0 15px;
    }

    h1 { font-size: 2.8rem; }
    h2 { font-size: 2rem; }

    .intro-block {
        grid-template-columns: 1fr !important;
    }

    .philosophy-grid {
        grid-template-columns: 1fr !important;
    }

    .options-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Tablets */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.3rem; }

    .glitch-text {
        font-size: 2rem;
    }

    #header {
        padding: 15px 10px;
    }

    #header h1 {
        font-size: 1.5rem;
    }

    #header p {
        font-size: 0.8rem;
        padding: 0 10px;
    }

    #nav {
        top: 75px;
        padding: 8px 5px;
    }

    .nav-menu {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-menu a {
        font-size: 0.85rem;
        padding: 5px 8px;
    }

    #main {
        padding-top: 140px;
    }

    .content-section {
        padding: 40px 0;
    }

    .resource-grid,
    .feature-grid,
    .features-grid,
    .mirrors-grid,
    .steps-grid,
    .software-grid,
    .wallet-grid,
    .opsec-grid,
    .toc-grid {
        grid-template-columns: 1fr !important;
    }

    .stats-box > div {
        grid-template-columns: 1fr 1fr !important;
    }

    .comparison-table {
        font-size: 0.9rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 10px 8px;
    }

    /* Crypto widget responsive */
    #crypto-widget {
        flex-direction: column !important;
        gap: 10px !important;
        max-width: 90% !important;
    }

    .crypto-item {
        justify-content: center;
    }

    .button {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .actions {
        flex-direction: column;
        align-items: center;
    }

    .actions .button {
        width: 100%;
        max-width: 280px;
    }

    /* External resources grid */
    .external-resources {
        grid-template-columns: 1fr 1fr !important;
    }

    .resources-grid {
        grid-template-columns: 1fr 1fr !important;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.4rem; }
    h3 { font-size: 1.1rem; }

    .glitch-text {
        font-size: 1.5rem;
    }

    #header h1 {
        font-size: 1.2rem;
    }

    #nav {
        top: 65px;
    }

    .nav-menu a {
        font-size: 0.75rem;
        padding: 4px 6px;
    }

    #main {
        padding-top: 120px;
    }

    .content-section {
        padding: 30px 0;
    }

    p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .stat-card .number {
        font-size: 1.8rem;
    }

    .stat-card .label {
        font-size: 0.8rem;
    }

    .faq-item h4 {
        font-size: 1rem;
        padding: 12px 15px;
    }

    .faq-answer p {
        font-size: 0.95rem;
    }

    /* Code blocks */
    .code-block {
        padding: 15px;
        font-size: 0.8rem;
        overflow-x: auto;
    }

    /* Feature boxes */
    .feature-box,
    .step-card,
    .mirror-card,
    .opsec-card {
        padding: 20px;
    }

    /* Timeline */
    .steps-timeline {
        padding-left: 25px;
    }

    .timeline-item {
        padding-left: 20px;
    }

    /* External resources */
    .external-resources,
    .resources-grid {
        grid-template-columns: 1fr !important;
    }

    /* Footer */
    #footer {
        padding: 30px 10px;
        font-size: 0.8rem;
    }

    #footer p {
        margin-bottom: 10px;
    }
}

/* Very small phones */
@media (max-width: 360px) {
    h1 { font-size: 1.4rem; }
    h2 { font-size: 1.2rem; }

    .glitch-text {
        font-size: 1.3rem;
    }

    #header h1 {
        font-size: 1rem;
    }

    .nav-menu a {
        font-size: 0.7rem;
        padding: 3px 5px;
    }

    .button {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
}

/* Landscape mode on phones */
@media (max-height: 500px) and (orientation: landscape) {
    #header {
        padding: 10px 0;
    }

    #header h1 {
        font-size: 1.3rem;
    }

    #header p {
        display: none;
    }

    #nav {
        top: 50px;
        padding: 5px;
    }

    #main {
        padding-top: 100px;
    }
}

/* Print styles */
@media print {
    #header, #nav, #crypto-widget, .last-updated, #footer {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    #main {
        padding-top: 0;
    }

    a {
        color: black;
        text-decoration: underline;
    }
}

/* Nav menu icons styling */
.nav-menu a i {
    margin-right: 6px;
    font-size: 0.95rem;
}
