/* DarkMatter Website - Main Stylesheet */
/* Clean, minimal, and professional design */

:root {
    --primary-color: #1a1a2e;
    --secondary-color: #16213e;
    --accent-color: #0f3460;
    --highlight-color: #e94560;
    --text-color: #f1f1f1;
    --text-secondary: #b0b0b0;
    --border-color: #2a2a3e;
    --max-width: 1200px;
    --spacing-unit: 1rem;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--primary-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
}

/* Header Styles */
header {
    background-color: var(--secondary-color);
    border-bottom: 2px solid var(--border-color);
    padding: calc(var(--spacing-unit) * 1.5) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 0.75);
}

.logo {
    width: 50px;
    height: 50px;
}

.site-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
}

/* Navigation Styles */
nav ul {
    list-style: none;
    display: flex;
    gap: calc(var(--spacing-unit) * 2);
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover,
nav a.active {
    color: var(--highlight-color);
}

/* Main Content Styles */
main {
    max-width: var(--max-width);
    margin: calc(var(--spacing-unit) * 3) auto;
    padding: 0 var(--spacing-unit);
}

/* Typography */
h1 {
    font-size: 2.5rem;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    color: var(--text-color);
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    margin-top: calc(var(--spacing-unit) * 2.5);
    margin-bottom: var(--spacing-unit);
    color: var(--text-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: calc(var(--spacing-unit) * 0.5);
}

h3 {
    font-size: 1.5rem;
    margin-top: calc(var(--spacing-unit) * 2);
    margin-bottom: calc(var(--spacing-unit) * 0.75);
    color: var(--text-color);
}

h4 {
    font-size: 1.25rem;
    margin-top: calc(var(--spacing-unit) * 1.5);
    margin-bottom: calc(var(--spacing-unit) * 0.5);
    color: var(--text-color);
}

p {
    margin-bottom: calc(var(--spacing-unit) * 1.25);
    color: var(--text-secondary);
}

strong {
    color: var(--text-color);
    font-weight: 600;
}

/* Links */
a {
    color: var(--highlight-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Lists */
ul, ol {
    margin-left: calc(var(--spacing-unit) * 2);
    margin-bottom: calc(var(--spacing-unit) * 1.25);
}

li {
    margin-bottom: calc(var(--spacing-unit) * 0.5);
    color: var(--text-secondary);
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.content-image {
    margin: calc(var(--spacing-unit) * 2) 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: calc(var(--spacing-unit) * 3) 0;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    border-radius: 8px;
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.hero h1 {
    margin-bottom: calc(var(--spacing-unit) * 1);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-color);
    max-width: 800px;
    margin: 0 auto calc(var(--spacing-unit) * 2);
}

/* Call-to-Action Button */
.cta-button {
    display: inline-block;
    background-color: var(--highlight-color);
    color: var(--text-color);
    padding: calc(var(--spacing-unit) * 0.75) calc(var(--spacing-unit) * 2);
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
    background-color: #d63850;
    transform: translateY(-2px);
    text-decoration: none;
}

/* Content Sections */
.content-section {
    margin-bottom: calc(var(--spacing-unit) * 3);
}

/* Info Boxes */
.info-box {
    background-color: var(--secondary-color);
    border-left: 4px solid var(--highlight-color);
    padding: calc(var(--spacing-unit) * 1.5);
    margin: calc(var(--spacing-unit) * 2) 0;
    border-radius: 4px;
}

.info-box p:last-child {
    margin-bottom: 0;
}

/* Warning Box */
.warning-box {
    background-color: rgba(233, 69, 96, 0.1);
    border-left: 4px solid var(--highlight-color);
    padding: calc(var(--spacing-unit) * 1.5);
    margin: calc(var(--spacing-unit) * 2) 0;
    border-radius: 4px;
}

.warning-box strong {
    color: var(--highlight-color);
}

/* Footer Styles */
footer {
    background-color: var(--secondary-color);
    border-top: 2px solid var(--border-color);
    padding: calc(var(--spacing-unit) * 2) 0;
    margin-top: calc(var(--spacing-unit) * 4);
    text-align: center;
}

footer p {
    color: var(--text-secondary);
    margin-bottom: calc(var(--spacing-unit) * 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: var(--spacing-unit);
    }

    nav ul {
        flex-direction: column;
        gap: calc(var(--spacing-unit) * 0.75);
        text-align: center;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

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

/* Lazy Loading Animation */
img[loading="lazy"] {
    transition: opacity 0.3s ease-in;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

* Стили для блока ссылок с кнопкой копирования */
.access-portal {
    background: #141414;
    border: 1px solid #2a2a2a;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.access-portal:hover {
    border-color: #00ff7f;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 255, 127, 0.15);
}

.portal-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.link-display-wrapper {
    background-color: #282c34;
    padding: 15px;
    border: 2px solid #61dafb;
    border-radius: 5px;
    position: relative;
    box-shadow: 0 0 10px rgba(97, 218, 251, 0.5);
    transition: all 0.3s ease-in-out;
}

.link-display-wrapper:hover {
    box-shadow: 0 0 15px rgba(97, 218, 251, 0.8);
    transform: translateY(-2px);
}

.onion-link {
    color: #61dafb;
    font-size: 18px;
    font-family: 'Courier New', monospace;
    word-break: break-all;
    display: block;
    margin-bottom: 10px;
    line-height: 1.6;
}

.copy-button {
    background: linear-gradient(135deg, #00ff7f 0%, #4ecdc4 100%);
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.copy-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 127, 0.4);
}

.copy-button:active {
    transform: translateY(0);
}

.copy-success {
    color: #4caf50;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.copy-success.show {
    display: block;
}

.portal-status {
    color: #4ecdc4;
    font-weight: 600;
    margin-left: 1rem;
    font-size: 0.9rem;
}

.warning-box {
    background: rgba(0, 255, 127, 0.08);
    border: 1px solid #00ff7f;
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 2rem;
    text-align: center;
}

.warning-box p {
    color: #cccccc;
    font-size: 0.9rem;
    margin: 0;
}

/* Стили для блока рейтинга и отзывов */
.reviews-section {
    background: #141414;
    border: 1px solid #2a2a2a;
    border-radius: 20px;
    padding: 2.5rem;
    margin: 2rem 0;
}

.overall-rating {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem;
    background: rgba(0, 255, 127, 0.05);
    border-radius: 15px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.rating-score {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rating-number {
    font-size: 4rem;
    font-weight: 700;
    color: #00ff7f;
    line-height: 1;
}

.rating-stars {
    font-size: 2rem;
    color: #ffd700;
    margin: 0.5rem 0;
}

.rating-count {
    color: #888;
    font-size: 0.9rem;
}

.rating-bars {
    flex: 1;
    min-width: 300px;
}

.rating-bar-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0.5rem 0;
}

.star-label {
    width: 60px;
    color: #ccc;
    font-size: 0.9rem;
}

.bar-container {
    flex: 1;
    height: 8px;
    background: #2a2a2a;
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff7f, #4ecdc4);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.bar-percentage {
    width: 40px;
    text-align: right;
    color: #888;
    font-size: 0.85rem;
}

.reviews-list {
    margin-top: 2rem;
}

.review-item {
    background: rgba(0, 255, 127, 0.03);
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem 0;
    transition: all 0.3s ease;
}

.review-item:hover {
    border-color: #00ff7f;
    transform: translateX(5px);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #00ff7f, #4ecdc4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #000;
}

.reviewer-name {
    font-weight: 600;
    color: #fff;
}

.review-stars {
    color: #ffd700;
    font-size: 1rem;
}

.review-date {
    color: #888;
    font-size: 0.85rem;
}

.review-text {
    color: #ccc;
    line-height: 1.6;
    margin-top: 0.5rem;
}

.review-verified {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(0, 255, 127, 0.1);
    color: #00ff7f;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .overall-rating {
        flex-direction: column;
        text-align: center;
    }
    
    .rating-bars {
        width: 100%;
    }
}