/* DrugHub Guide - Unique Orange Energy Design */
/* Version: 1.0 | Date: 2025-12-16 */

@import url('https://fonts.googleapis.com/css2?family=Audiowide:wght@400&family=Inter:wght@300;400;500;600;700&family=Rajdhani:wght@400;500;600;700&display=swap');

:root {
    /* DrugHub Orange Palette */
    --primary: #ff6b00;
    --primary-light: #ff8533;
    --primary-saturated: #ff9800;
    --primary-dark: #d85a00;
    --primary-darker: #b84800;

    /* Accent Colors */
    --accent-red: #f44336;
    --accent-green: #4CAF50;
    --accent-yellow: #ffd60a;

    /* Neutrals */
    --neutral-1: #e8e8e8;
    --neutral-2: #b8b8b8;
    --neutral-3: #888888;
    --neutral-4: #444444;
    --neutral-dark: #2a2a2a;
    --neutral-darker: #1a1a1a;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #ff6b00 0%, #ff9800 100%);
    --gradient-fire: linear-gradient(135deg, #ff6b00 0%, #ff8533 50%, #ffd60a 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(255, 107, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(255, 107, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(255, 107, 0, 0.2);
    --shadow-glow: 0 0 20px rgba(255, 107, 0, 0.3);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: #fefefe;
    color: var(--neutral-darker);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==================== LINKS ==================== */
a {
    color: var(--primary);
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    font-weight: 500;
}

a:hover {
    color: var(--primary-dark);
}

/* Content links with underline animation */
.card a,
section p a,
.section p a,
article a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.card a:hover,
section p a:hover,
.section p a:hover,
article a:hover {
    color: var(--primary-dark);
    border-bottom: 2px solid var(--primary);
}

/* External links indicator */
a[target="_blank"]::after {
    content: " ↗";
    font-size: 0.85em;
    color: var(--primary-light);
    opacity: 0.7;
}

a[target="_blank"]:hover::after {
    opacity: 1;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fff5e6 0%, #ffffff 50%, #fff8f0 100%);
    z-index: -2;
}

/* Particles Container */
#particles {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    pointer-events: none;
}

/* ==================== HEADER ==================== */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--primary);
}

header .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Audiowide', cursive;
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-fire);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(255, 107, 0, 0.4));
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--neutral-darker);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

nav a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--primary);
    cursor: pointer;
    background: none;
    border: none;
}

/* ==================== HERO SECTION ==================== */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 4rem 2rem;
}

.hero-background {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

.gradient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation: float 8s ease-in-out infinite;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: var(--gradient-fire);
    top: 10%;
    left: -10%;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: var(--gradient-primary);
    bottom: 10%;
    right: -10%;
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-30px) rotate(5deg); }
    66% { transform: translateY(-15px) rotate(-3deg); }
}

.hero-content {
    max-width: 900px;
    text-align: center;
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    padding: 4rem 3rem;
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
    border: 2px solid rgba(255, 107, 0, 0.2);
}

.hero h1 {
    font-family: 'Audiowide', cursive;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-fire);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { filter: drop-shadow(0 0 5px rgba(255, 107, 0, 0.3)); }
    to { filter: drop-shadow(0 0 15px rgba(255, 107, 0, 0.6)); }
}

.hero p {
    font-size: 1.3rem;
    color: var(--neutral-3);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==================== BUTTONS ==================== */
.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-fire);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* ==================== SECTIONS ==================== */
.section {
    padding: 5rem 2rem;
    position: relative;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--neutral-darker);
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--neutral-3);
    max-width: 700px;
    margin: 0 auto;
}

/* ==================== CARDS ==================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 107, 0, 0.2);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    background: var(--gradient-fire);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--neutral-darker);
}

.card p {
    color: var(--neutral-3);
    line-height: 1.8;
}

/* ==================== STATS ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat-card {
    background: var(--gradient-fire);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    color: white;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-glow);
}

.stat-number {
    font-family: 'Audiowide', cursive;
    font-size: 3rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.95;
    font-weight: 500;
}

/* ==================== CRYPTO WIDGET ==================== */
.crypto-widget {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.crypto-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
}

.crypto-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.crypto-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
}

.crypto-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--neutral-darker);
}

.crypto-price {
    font-family: 'Audiowide', cursive;
    font-size: 2rem;
    color: var(--primary);
    margin: 0.5rem 0;
}

.crypto-change {
    font-size: 1.1rem;
    font-weight: 600;
}

.crypto-change.positive { color: var(--accent-green); }
.crypto-change.negative { color: var(--accent-red); }

/* ==================== FOOTER ==================== */
footer {
    background: var(--neutral-darker);
    color: white;
    padding: 4rem 2rem 2rem;
    margin-top: 5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto 3rem;
}

.footer-section h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-light);
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 0.3rem 0;
}

.footer-section a:hover {
    color: var(--primary-light);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }

    nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-lg);
        display: none;
    }

    nav ul.active {
        display: flex;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

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

/* ==================== UTILITY CLASSES ==================== */
.text-center { text-align: center; }
.text-gradient {
    background: var(--gradient-fire);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-2 { margin-top: 2rem; }
