@charset "utf-8";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    color: #e2e8f0;
    line-height: 1.6;
    min-height: 100vh;
}

.main {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
}

.hero-section {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 25%, #334155 50%, #475569 75%, #64748b 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

.background-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(34, 197, 94, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(168, 85, 247, 0.2) 0%, transparent 50%);
}

.hero-content {
    text-align: center;
    z-index: 10;
}

.series-badge {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.hero-title {
    font-size: 42px;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: #cbd5e1;
    font-weight: 300;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

.intro-section {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 15px;
    border: 1px solid rgba(71, 85, 105, 0.3);
    backdrop-filter: blur(10px);
}

.intro-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #22c55e;
}

.intro-text {
    font-size: 16px;
    color: #cbd5e1;
    max-width: 800px;
    margin: 0 auto;
}

.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: rgba(30, 41, 59, 0.6);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    border: 1px solid rgba(71, 85, 105, 0.3);
    backdrop-filter: blur(10px);
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #22c55e;
    margin-bottom: 8px;
}

.stat-label {
    color: #cbd5e1;
    font-size: 14px;
}

.controls-section {
    background: rgba(30, 41, 59, 0.6);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid rgba(71, 85, 105, 0.3);
    backdrop-filter: blur(10px);
}

.search-filter {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 20px;
}

.search-box {
    flex: 1;
    min-width: 250px;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(71, 85, 105, 0.3);
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 14px;
}

.search-box::placeholder {
    color: #94a3b8;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 4px 16px;
    background: rgba(71, 85, 105, 0.3);
    border: 1px solid rgba(71, 85, 105, 0.5);
    border-radius: 20px;
    color: #cbd5e1;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-color: #22c55e;
    color: white;
}

.view-toggle {
    display: flex;
    gap: 10px;
}

.view-btn {
    padding: 8px 12px;
    background: rgba(71, 85, 105, 0.3);
    border: 1px solid rgba(71, 85, 105, 0.5);
    border-radius: 6px;
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn.active {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-color: #3b82f6;
    color: white;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.articles-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 40px;
}

.article-card {
    background: rgba(30, 41, 59, 0.6);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(71, 85, 105, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(34, 197, 94, 0.5);
}

.article-list-item {
    background: rgba(15, 23, 42, 0.7);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(71, 85, 105, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 20px;
}

.article-list-item:hover {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(34, 197, 94, 0.5);
    transform: translateX(10px);
}

.article-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 15px;
    flex-shrink: 0;
}

.article-list-item .article-number {
    margin-bottom: 0;
    width: 40px;
    height: 40px;
    font-size: 14px;
}

.difficulty-beginner .article-number {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.difficulty-intermediate .article-number {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.difficulty-advanced .article-number {
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    color: white;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.article-title {
    font-size: 18px;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 12px;
    line-height: 1.4;
}

.article-list-item .article-content {
    flex: 1;
}

.article-list-item .article-title {
    font-size: 16px;
    margin-bottom: 8px;
}

.article-desc {
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-list-item .article-desc {
    font-size: 13px;
    margin-bottom: 8px;
}

.article-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag {
    background: rgba(71, 85, 105, 0.3);
    color: #cbd5e1;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    border: 1px solid rgba(71, 85, 105, 0.5);
}

.icons-area {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 8px;
    justify-content: end;
    align-items: center;
}

.difficulty-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.difficulty-beginner .difficulty-badge {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.difficulty-intermediate .difficulty-badge {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.difficulty-advanced .difficulty-badge {
    background: rgba(168, 85, 247, 0.2);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.learning-path {
    background: rgba(30, 41, 59, 0.5);
    border-radius: 15px;
    padding: 30px;
    margin-top: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(71, 85, 105, 0.3);
    backdrop-filter: blur(10px);
}

.learning-path h3 {
    color: #22c55e;
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.path-description {
    text-align: center;
    color: #94a3b8;
    margin-bottom: 30px;
    font-size: 16px;
}

.path-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.path-step {
    background: rgba(15, 23, 42, 0.7);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(71, 85, 105, 0.2);
}

.step-number {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin: 0 auto 15px;
}

.step-title {
    font-size: 16px;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 8px;
}

.step-desc {
    font-size: 14px;
    color: #94a3b8;
}

.purpose-links {
    text-align: center;
    margin-top: 15px;
}

.purpose-links .tag {
    background: rgba(71, 85, 105, 0.3);
    color: #cbd5e1;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 13px;
    border: 1px solid rgba(71, 85, 105, 0.5);
    text-decoration: none;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.purpose-links .tag:hover {
    background: #22c55e;
    color: white;
    border-color: #16a34a;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
    font-size: 16px;
    display: none;
}

.no-results.show {
    display: block;
}

@media (max-width: 768px) {
    .hero-section {
        height: 250px;
    }

    .hero-title {
        font-size: 32px;
    }

    .search-filter {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        min-width: auto;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 15px;
    }

    .article-list-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

/* Layout */
.content-wrapper {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.main-content {
    flex: 1 1 0%;
    min-width: 0;
}

.sidebar {
    width: 320px;
    flex-shrink: 0;
    top: 32px;
    align-self: flex-start;
}

.sidebar-box {
    background: rgba(30, 41, 59, 0.6);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(71, 85, 105, 0.3);
    color: #e2e8f0;
    font-size: 15px;
    backdrop-filter: blur(10px);
}

.sidebar-box h3 {
    color: #22c55e;
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.sidebar-description {
    text-align: center;
    color: #94a3b8;
    margin-bottom: 30px;
    font-size: 16px;
}

@media (max-width: 1024px) {
    .content-wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        position: static;
        margin-top: 32px;
    }
}

/* Footer */
footer {
    background-color: rgba(0, 0, 0, .1);
    text-align: center;
}

/* Logo */
.logo {
    position: absolute;
    top: 1rem;
    left: 1rem;
}

/* Legend */
table.legend {
    margin-bottom: 0;
}
table.legend .icon {
    text-align: center;
    vertical-align: top;
}
table.legend .desc {
    text-align: left;
    vertical-align: top;
    padding-left: 0.5em;
    padding-bottom: 0.25em;
}

/* Loader */
.loader {
    transform: rotateZ(45deg);
    perspective: 1000px;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    color: #fff;
}

.loader:before,
.loader:after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: inherit;
    height: inherit;
    border-radius: 50%;
    transform: rotateX(70deg);
    animation: 1s spin linear infinite;
}

.loader:after {
    color: #22c55e;
    transform: rotateY(70deg);
    animation-delay: .4s;
}

@keyframes rotate {
    0% {
        transform: translate(-50%, -50%) rotateZ(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotateZ(360deg);
    }
}

@keyframes rotateccw {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(-360deg);
    }
}

@keyframes spin {

    0%,
    100% {
        box-shadow: .2em 0px 0 0px currentcolor;
    }

    12% {
        box-shadow: .2em .2em 0 0 currentcolor;
    }

    25% {
        box-shadow: 0 .2em 0 0px currentcolor;
    }

    37% {
        box-shadow: -.2em .2em 0 0 currentcolor;
    }

    50% {
        box-shadow: -.2em 0 0 0 currentcolor;
    }

    62% {
        box-shadow: -.2em -.2em 0 0 currentcolor;
    }

    75% {
        box-shadow: 0px -.2em 0 0 currentcolor;
    }

    87% {
        box-shadow: .2em -.2em 0 0 currentcolor;
    }
}
