/* Новый CSS дизайн для Darknet Website */

/* Импорт шрифтов */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700;800&display=swap');

/* CSS переменные для цветов и размеров */
:root {
    /* Основные цвета */
    --bg-primary: #0A0A0A;
    --bg-secondary: #1A1A1A;
    --bg-card: rgba(30, 41, 59, 0.8);
    --bg-card-hover: rgba(30, 41, 59, 0.9);
    
    /* Акцентные цвета */
    --accent-purple: #8B5CF6;
    --accent-purple-dark: #6D28D9;
    --accent-blue: #3B82F6;
    --accent-blue-dark: #2563EB;
    --accent-green: #22C55E;
    --accent-green-dark: #16A34A;
    --accent-red: #EF4444;
    --accent-red-dark: #DC2626;
    
    /* Цвета текста */
    --text-primary: #FFFFFF;
    --text-secondary: #D1D5DB;
    --text-muted: #9CA3AF;
    
    /* Градиенты */
    --gradient-main: linear-gradient(135deg, #1A1A1A 0%, #3A0F58 50%, #1A1A1A 100%);
    --gradient-purple: linear-gradient(90deg, #6D28D9, #8B5CF6);
    --gradient-blue: linear-gradient(90deg, #2563EB, #3B82F6);
    --gradient-green: linear-gradient(90deg, #16A34A, #22C55E);
    --gradient-red: linear-gradient(90deg, #DC2626, #EF4444);
    
    /* Шрифты */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Размеры */
    --border-radius: 16px;
    --border-radius-lg: 24px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
}

/* Сброс стилей и базовые настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Плавная прокрутка к якорю */
html {
    scroll-behavior: smooth;
}

/* Отступ для якоря, чтобы элемент не скрывался под шапкой */
#marketplace-tabs {
    scroll-margin-top: 100px; /* Настройте значение под высоту вашей шапки */
}

body {
    font-family: var(--font-primary);
    background: var(--gradient-main);
    color: var(--text-secondary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Заголовки */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 4rem; }
h2 { font-size: 3rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

/* Контейнер */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header - Новый дизайн */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    padding: 1.5rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    transition: all 0.3s ease;
}

.logo:hover {
    color: var(--accent-purple);
    transform: translateY(-2px);
}

.logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--accent-purple);
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.3));
}

.nav {
    display: flex;
    gap: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-purple);
    transition: left 0.3s ease;
    z-index: -1;
}

.nav-link:hover::before,
.nav-link.active::before {
    left: 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    transform: translateY(-2px);
}

.nav-badges {
    display: flex;
    gap: 1rem;
}

.badge {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.badge-secure {
    border-color: var(--accent-purple);
    color: var(--accent-purple);
}

.badge-anonymous {
    border-color: var(--accent-green);
    color: var(--accent-green);
}

/* Hero Section - Новый дизайн */
.hero {
    padding: 8rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

.hero-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-tag {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hero-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.hero-tag:hover::before {
    opacity: 1;
}

.hero-tag:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.hero-tag.tag-purple::before { background: var(--gradient-purple); }
.hero-tag.tag-blue::before { background: var(--gradient-blue); }
.hero-tag.tag-green::before { background: var(--gradient-green); }
.hero-tag.tag-red::before { background: var(--gradient-red); }

.hero-tag span {
    position: relative;
    z-index: 1;
}

/* Marketplace Tabs - Новый дизайн */
.marketplace-section {
    padding: 6rem 0;
}

.tabs-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.tab-button {
    padding: 2rem;
    border: none;
    border-radius: var(--border-radius-lg);
    background: var(--bg-card);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.tab-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tab-button:hover::before,
.tab-button.active::before {
    opacity: 1;
}

.tab-button.tab-mega::before { background: var(--gradient-purple); }
.tab-button.tab-kraken::before { background: var(--gradient-blue); }
.tab-button.tab-omg::before { background: var(--gradient-green); }
.tab-button.tab-blacksprut::before { background: var(--gradient-red); }

.tab-button:hover,
.tab-button.active {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    color: var(--text-primary);
}

.tab-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.tab-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.tab-subtitle {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Marketplace Details - Новый дизайн */
.marketplace-details {
    display: grid;
    gap: 3rem;
}

.marketplace-header {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: center;
    padding: 3rem;
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.marketplace-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 100% 0%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.marketplace-info {
    position: relative;
    z-index: 1;
}

.marketplace-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.marketplace-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.marketplace-description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.marketplace-image-container {
    position: relative;
    z-index: 1;
}

.marketplace-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: var(--border-radius);
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.marketplace-image:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.4));
}

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

.stat-card {
    padding: 2rem;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-purple);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.feature-card {
    padding: 2.5rem;
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(139, 92, 246, 0.3);
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feature-icon {
    width: 2rem;
    height: 2rem;
    color: var(--accent-purple);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
}

.feature-list {
    list-style: none;
    space-y: 1rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
}

.feature-item-icon {
    width: 1rem;
    height: 1rem;
    color: var(--accent-purple);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.feature-item-text {
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Mirrors Section */
.mirrors-section {
    padding: 3rem;
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 3rem 0;
}

.mirrors-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.mirrors-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.mirrors-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--accent-blue);
}

.refresh-button {
    padding: 0.75rem 1.5rem;
    background: var(--gradient-purple);
    border: none;
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.refresh-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.mirrors-description {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.875rem;
}

.mirrors-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mirror-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.mirror-item:hover {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(139, 92, 246, 0.2);
}

.mirror-link {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    color: var(--accent-green);
    word-wrap: break-word;
    word-break: break-all;
    overflow-wrap: break-word;
    flex: 1;
    margin-right: 1rem;
}

.copy-button {
    padding: 0.5rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-button:hover {
    color: var(--text-primary);
    border-color: var(--accent-purple);
    background: rgba(139, 92, 246, 0.1);
}

.copy-icon {
    width: 1rem;
    height: 1rem;
}

.mirrors-warning {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--border-radius);
    color: var(--text-muted);
    font-size: 0.875rem;
}

.warning-icon {
    width: 1rem;
    height: 1rem;
    color: #FCD34D;
    flex-shrink: 0;
}

/* Moriarty Section */
.moriarty-section {
    padding: 3rem;
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 3rem 0;
}

.moriarty-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.moriarty-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--accent-purple);
    filter: drop-shadow(0 4px 16px rgba(139, 92, 246, 0.3));
}

.moriarty-info h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.moriarty-info p {
    color: var(--text-muted);
}

.moriarty-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.moriarty-achievements h5,
.moriarty-philosophy h5 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.moriarty-achievements ul {
    list-style: none;
}

.moriarty-achievements li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.moriarty-philosophy p {
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Content Pages Styles */
.content-page {
    padding: 6rem 0;
}

.content-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 4rem;
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.content-sections {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.content-section {
    padding: 3rem;
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.content-section:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(139, 92, 246, 0.3);
}

.content-section h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--accent-purple);
}

.content-section p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* Timeline Styles (for History page) */
.timeline-container {
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-item {
    position: relative;
    padding-left: 4rem;
    margin-bottom: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 1rem;
    width: 1rem;
    height: 1rem;
    background: var(--gradient-purple);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 1.5rem;
    top: 2rem;
    width: 2px;
    height: calc(100% + 1rem);
    background: linear-gradient(to bottom, var(--accent-purple), transparent);
}

.timeline-item:last-child::after {
    display: none;
}

/* Footer */
.footer {
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    text-align: center;
    margin-top: 6rem;
}

.footer p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    background: var(--gradient-green);
    color: var(--text-primary);
    border-radius: var(--border-radius);
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.toast.show {
    transform: translateX(0);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .marketplace-header {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .moriarty-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-badges {
        display: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .tabs-container {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .timeline-item {
        padding-left: 2rem;
    }
    
    .timeline-item::before {
        left: 0.5rem;
    }
    
    .timeline-item::after {
        left: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .content-title {
        font-size: 2rem;
    }
    
    .marketplace-title {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .mirrors-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .mirror-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .mirror-link {
        margin-right: 0;
    }
}

