/* ============================================
   DRUGHUB MARKET - ORIGINAL MARKETPLACE DESIGN
   Based on actual DrugHub screenshots
   Color: #FF8C00 (orange), Dark gray backgrounds
   ============================================ */

:root {
    /* НАСТОЯЩИЕ цвета DrugHub из скриншотов */
    --orange-main: #FF8C00;
    --orange-hover: #e67e00;
    --orange-light: #FFA500;

    --dark-main: #2b2b2b;
    --dark-sidebar: #2e2e2e;
    --dark-hover: #3a3a3a;

    --light-bg: #e8e8e8;
    --light-card: #f0f0f0;
    --white: #ffffff;

    --text-dark: #1a1a1a;
    --text-gray: #444444;
    --text-light: #ffffff;
    --text-muted: #888888;

    --green-badge: #4CAF50;
    --gray-btn: #6c757d;

    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

body {
    font-family: var(--font-main);
    background: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
}

a {
    color: var(--orange-main);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ==================== NAVBAR ==================== */
.navbar {
    background: var(--dark-main);
    padding: 10px 20px;
    border-bottom: 1px solid #1a1a1a;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 22px;
    color: var(--text-light);
    font-weight: normal;
}

.logo-accent {
    background: var(--orange-main);
    color: var(--text-light);
    padding: 2px 10px;
    margin-left: 0;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 15px;
    align-items: center;
}

.nav-link {
    color: var(--orange-main);
    padding: 8px 15px;
    border: 1px solid var(--orange-main);
    transition: all 0.3s;
    font-size: 14px;
}

.nav-link:hover,
.nav-link.active {
    background: var(--orange-main);
    color: var(--text-light);
    text-decoration: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background: var(--orange-main);
    margin: 3px 0;
}

/* ==================== HERO (минимальный) ==================== */
.hero {
    background: var(--dark-main);
    padding: 30px 20px;
    text-align: center;
    border-bottom: 3px solid var(--orange-main);
}

.hero-background {
    display: none;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    color: var(--text-light);
    font-size: 36px;
    margin-bottom: 15px;
}

.title-main {
    color: var(--text-light);
}

.title-accent {
    color: var(--orange-main);
}

.title-sub {
    display: block;
    font-size: 18px;
    color: var(--orange-main);
    margin-top: 10px;
}

.hero-subtitle {
    color: var(--orange-light);
    font-size: 18px;
    font-weight: 300;
}

.hero-description {
    max-width: 800px;
    margin: 30px auto;
    padding: 0 20px;
}

.hero-description p {
    color: #cccccc;
    font-size: 16px;
    line-height: 1.8;
}

.hero-description strong {
    color: var(--orange-main);
    font-weight: 600;
}

.hero-buttons {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

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

/* ==================== SECTIONS ==================== */
.section-title {
    color: var(--orange-main);
    font-size: 32px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--orange-main), transparent);
}

/* ==================== ABOUT SECTION ==================== */
.about {
    background: var(--white);
    padding: 40px 0;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.about-text h3 {
    color: var(--orange-main);
    font-size: 22px;
    margin: 30px 0 15px 0;
}

.about-description {
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-dark);
    font-size: 16px;
}

.content-subtitle {
    color: var(--orange-main);
    font-size: 26px;
    margin: 40px 0 20px;
    font-weight: 700;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 140, 0, 0.2);
}

.faq-question {
    color: var(--orange-main);
    font-size: 20px;
    margin: 25px 0 15px;
    font-weight: 700;
}

/* ==================== SECURITY SECTION ==================== */
.security {
    background: var(--light-bg);
    padding: 40px 0;
}

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

.security-card {
    background: var(--white);
    padding: 30px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.security-card:hover {
    border-color: var(--orange-main);
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.2);
    transform: translateY(-5px);
}

.card-header {
    margin-bottom: 15px;
}

.card-header h3 {
    color: var(--orange-main);
    font-size: 18px;
    margin-bottom: 10px;
}

.card-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.card-content {
    color: var(--text-dark);
    line-height: 1.7;
}

.card-content p {
    margin-bottom: 12px;
}

.card-content ul {
    margin: 15px 0 15px 20px;
    line-height: 1.8;
}

.card-content ol {
    margin: 15px 0 15px 20px;
    line-height: 1.8;
}

.card-content strong {
    color: var(--text-dark);
    font-weight: bold;
}

.card-content a {
    color: var(--orange-main);
}

.card-content code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

/* ==================== BUTTONS ==================== */
.btn {
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--orange-main);
    color: var(--text-light);
}

.btn-primary:hover {
    background: var(--orange-hover);
    text-decoration: none;
}

.btn-secondary {
    background: var(--gray-btn);
    color: var(--text-light);
}

.btn-secondary:hover {
    background: #5a6268;
    text-decoration: none;
}

/* ==================== RESOURCES SECTION ==================== */
.resources {
    background: var(--white);
    padding: 60px 0;
}

.resources p {
    color: var(--text-gray);
}

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

.resource-category {
    background: var(--light-card);
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--orange-main);
    transition: all 0.3s ease;
}

.resource-category:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.resource-category h3 {
    color: var(--orange-main);
    font-size: 22px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ddd;
}

.resource-links {
    list-style: none;
}

.resource-links li {
    margin-bottom: 18px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.resource-links li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.resource-links a {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 16px;
    transition: color 0.2s;
    display: block;
    margin-bottom: 5px;
}

.resource-links a:hover {
    color: var(--orange-main);
    text-decoration: none;
}

.resource-links span {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.5;
}

.resources-disclaimer {
    border-radius: 8px;
}

/* ==================== REGISTRATION STEPS ==================== */
.registration {
    background: var(--white);
    padding: 60px 0;
}

.registration p {
    color: var(--text-gray);
}

.registration-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    margin-top: 40px;
}

.step-item {
    display: flex;
    gap: 25px;
    align-items: flex-start;
    padding: 25px;
    background: var(--light-card);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.step-item:hover {
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.15);
    transform: translateY(-3px);
}

.step-number {
    background: linear-gradient(135deg, var(--orange-main), var(--orange-hover));
    color: var(--text-light);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
}

.step-content h3 {
    color: var(--text-dark);
    margin-bottom: 12px;
    font-size: 20px;
}

.step-content p {
    color: var(--text-gray);
    margin-bottom: 15px;
    line-height: 1.7;
}

/* ==================== CRYPTO PRICES ==================== */
.crypto-prices {
    background: var(--dark-main);
    padding: 50px 0;
}

.crypto-prices .section-title {
    color: var(--text-light);
}

.crypto-prices p {
    color: var(--orange-light);
}

.crypto-prices a {
    color: var(--orange-main);
}

.crypto-widget {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.crypto-card {
    background: var(--dark-sidebar);
    padding: 30px 25px;
    text-align: center;
    border: 2px solid var(--dark-hover);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.crypto-card:hover {
    border-color: var(--orange-main);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 140, 0, 0.2);
}

.crypto-card h3 {
    color: var(--text-light);
    font-size: 20px;
    margin-bottom: 15px;
}

.crypto-card .price {
    color: var(--orange-main);
    font-size: 32px;
    font-weight: bold;
    margin: 15px 0;
}

.crypto-card .change {
    font-size: 16px;
    margin: 10px 0;
    font-weight: 600;
}

.crypto-card .change.positive {
    color: var(--green-badge);
}

.crypto-card .change.negative {
    color: #f44336;
}

.crypto-card .volume,
.crypto-card .timestamp {
    color: var(--orange-light);
    font-size: 13px;
    margin: 5px 0;
}

.api-note {
    text-align: center;
    max-width: 900px;
    margin: 40px auto 0;
    padding: 20px;
    background: rgba(255, 140, 0, 0.1);
    border-left: 4px solid var(--orange-main);
    color: #cccccc;
    font-size: 14px;
}

.prices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.price-card {
    background: var(--dark-sidebar);
    padding: 20px;
    text-align: center;
    border: 1px solid var(--dark-hover);
}

.crypto-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.crypto-name {
    color: var(--text-light);
    font-size: 18px;
    margin-bottom: 10px;
}

.crypto-price {
    color: var(--orange-main);
    font-size: 24px;
    font-weight: bold;
}

.price-change {
    font-size: 14px;
    margin-top: 5px;
}

.price-up {
    color: var(--green-badge);
}

.price-down {
    color: #f44336;
}

/* ==================== GALLERY ==================== */
.gallery {
    background: var(--light-bg);
    padding: 60px 0;
}

/* Logo item special styling */
.gallery-item.logo-item {
    background: var(--white);
}

.gallery-item.logo-item .gallery-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
    padding: 40px;
}

.gallery-item.logo-item .gallery-image img {
    width: auto;
    height: auto;
    max-width: 80%;
    max-height: 200px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(255, 140, 0, 0.3));
}

.gallery-item.logo-item:hover .gallery-image img {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 20px rgba(255, 140, 0, 0.5));
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: var(--white);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 140, 0, 0.25);
}

.gallery-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(43, 43, 43, 0.95), transparent);
    color: var(--text-light);
    padding: 25px 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--orange-main);
}

.gallery-overlay p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-light);
}

/* ==================== NEWS ==================== */
.news {
    background: var(--white);
    padding: 40px 0;
}

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

.news-card {
    border: 1px solid #ddd;
    padding: 20px;
    transition: all 0.3s;
}

.news-card:hover {
    border-color: var(--orange-main);
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.2);
}

.news-date {
    color: var(--orange-main);
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 10px;
}

.news-title {
    color: var(--text-dark);
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.news-excerpt {
    color: var(--text-gray);
    line-height: 1.6;
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--dark-main);
    color: var(--text-light);
    padding: 40px 20px 20px 20px;
    border-top: 3px solid var(--orange-main);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: var(--orange-main);
    margin-bottom: 15px;
}

.footer-section p {
    line-height: 1.7;
    color: #cccccc;
}

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

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: var(--orange-main);
}

.footer-section a:hover {
    color: var(--orange-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--dark-hover);
    color: #cccccc;
}

.footer-links {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* ==================== PAGE FRESHNESS ==================== */
.page-freshness {
    background: var(--light-card);
    padding: 25px;
    text-align: center;
    border-top: 3px solid var(--orange-main);
}

.page-freshness p {
    color: var(--text-gray);
    margin: 0;
}

.page-freshness strong {
    color: var(--text-dark);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 968px) {
    .nav-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero-title {
        font-size: 28px;
    }

    .security-grid,
    .prices-grid,
    .gallery-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .navbar {
        padding: 10px 15px;
    }

    .hero {
        padding: 20px 15px;
    }

    .container {
        padding: 20px 15px;
    }

    .section-title {
        font-size: 24px;
    }
}
