﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    padding-bottom: 60px;
    line-height: 1.6;
}

header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

    nav ul {
        display: flex;
        list-style: none;
        gap: 1rem;
        align-items: center;
    }

.nav-item {
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s;
}

    .nav-item:hover {
        background-color: #34495e;
    }

    .nav-item.active {
        background-color: #3498db;
    }

.auth-btn {
    background-color: #27ae60;
}

    .auth-btn:hover {
        background-color: #219a52;
    }

/* Поисковая строка */
.search-container {
    max-width: 1200px;
    margin: 1rem auto;
    display: flex;
    gap: 0.5rem;
    padding: 0 1rem;
}

#search-input {
    flex: 1;
    padding: 0.8rem 1.2rem;
    border: 2px solid #3498db;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
}

#search-btn {
    background: #3498db;
    border: none;
    color: white;
    padding: 0 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 1.1rem;
}

    #search-btn:hover {
        background: #2980b9;
    }

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

section {
    display: none;
    min-height: 70vh;
}

    section.active {
        display: block;
    }

.articles-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.article-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

    .article-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

    .article-card h3 {
        color: #2c3e50;
        margin-bottom: 0.8rem;
        font-size: 1.3rem;
    }

    .article-card p {
        color: #666;
        margin-bottom: 1.2rem;
        flex-grow: 1;
    }

/* Стили для кнопок действий */
.article-actions {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    gap: 0.5rem;
}

.read-more-btn {
    background-color: #9b59b6;
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 0.9rem;
    flex: 1;
}

    .read-more-btn:hover {
        background-color: #8e44ad;
    }

.favorite-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
}

    .favorite-btn.added {
        background-color: #27ae60;
    }

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 2rem;
    width: 90%;
    max-width: 400px;
    border-radius: 10px;
    position: relative;
}

.close {
    position: absolute;
    right: 1rem;
    top: 0.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: #7f8c8d;
    transition: color 0.3s;
}

    .close:hover {
        color: #e74c3c;
    }

.modal input {
    width: 100%;
    padding: 0.8rem;
    margin: 0.5rem 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

    .modal input:focus {
        border-color: #3498db;
        outline: none;
    }

    .modal input.invalid {
        border-color: #e74c3c;
    }

.error-message {
    color: #e74c3c;
    font-size: 0.8rem;
    min-height: 1.2rem;
    margin-bottom: 0.5rem;
}

button:disabled {
    background-color: #95a5a6 !important;
    cursor: not-allowed;
}

.user-info {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.logout-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 0.7rem 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 1rem;
    font-size: 1rem;
}

    .logout-btn:hover {
        background-color: #c0392b;
    }

/* Стили для полной статьи */
#article-full-section {
    padding: 1rem;
}

.article-full-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 1rem;
}

    .article-full-content h2 {
        color: #2c3e50;
        margin-bottom: 1.5rem;
        padding-bottom: 0.5极端的;
        border-bottom: 2px solid #3498db;
    }

.article-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.article-body {
    line-height: 1.7;
}

    .article-body h3 {
        color: #2c3e50;
        margin: 1.5rem 0 1rem;
        font-size: 1.3rem;
    }

    .article-body p {
        margin-bottom: 1.2rem;
    }

    .article-body ul,
    .article-body ol {
        margin-left: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .article-body li {
        margin-bottom: 0.7rem;
    }

    .article-body pre {
        background: #2c3e50;
        color: #ecf0f1;
        padding: 1rem;
        border-radius: 5px;
        overflow-x: auto;
        margin-bottom: 1.5rem;
    }

    .article-body code {
        font-family: 'Courier New', monospace;
    }

.back-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 1.5rem;
    transition: background 0.3s;
    display: inline-block;
}

    .back-btn:hover {
        background: #2980b9;
    }

footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 1.2rem;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 90;
}

/* Стили для таблицы навыков */
.skills-table {
    overflow-x: auto;
    margin: 2rem 0;
}

    .skills-table table {
        width: 100%;
        border-collapse: collapse;
        background: white;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .skills-table th, .skills-table td {
        padding: 12px 15px;
        text-align: left;
        border-bottom: 1px solid #eee;
    }

    .skills-table th {
        background-color: #2c3e50;
        color: white;
        font-weight: 600;
    }

    .skills-table tr:nth-child(even) {
        background-color: #f8f9fa;
    }

/* Стили для soft skills */
.soft-skills {
    margin: 2rem 0;
}

.skill-item {
    margin-bottom: 1.2rem;
}

.skill-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.skill-bar {
    height: 8px;
    background: #ecf0f1;
    border-radius: 4px;
    overflow: hidden;
}

.skill-level {
    height: 100%;
    background: #3498db;
    border-radius: 4px;
}

/* Стили для советов */
.tips {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.tip-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    border-top: 3px solid #3498db;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

    .tip-card:hover {
        transform: translateY(-5px);
    }

.tip-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Стили для сетки инструментов */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.tool-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.2rem;
    border-left: 4px solid #3498db;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

    .tool-card h4 {
        color: #2c3e50;
        margin-bottom: 0.5rem;
    }

    .tool-card p {
        color: #7f8c8d;
        font-size: 0.95rem;
        line-height: 1.5;
    }

/* Стили для таблицы сравнения */
.comparison-table {
    overflow-x: auto;
    margin: 2rem 0;
}

    .comparison-table table {
        width: 100%;
        border-collapse: collapse;
        background: white;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .comparison-table th, .comparison-table td {
        padding: 12px 15px;
        text-align: left;
        border: 1px solid #eee;
    }

    .comparison-table th {
        background-color: #2c3e50;
        color: white;
        font-weight: 600;
    }

    .comparison-table tr:nth-child(even) {
        background-color: #f8f9fa;
    }

/* Сетка навыков */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.skill-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    border-top: 3px solid #3498db;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

    .skill-card:hover {
        transform: translateY(-5px);
    }

.skill-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Таблица инструментов */
.tools-table {
    overflow-x: auto;
    margin: 2rem 0;
}

    .tools-table table {
        width: 100%;
        border-collapse: collapse;
        background: white;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .tools-table th, .tools-table td {
        padding: 12px 15px;
        text-align: left;
        border-bottom: 1px solid #eee;
    }

    .tools-table th {
        background-color: #2c3e50;
        color: white;
        font-weight: 600;
    }

    .tools-table tr:nth-child(even) {
        background-color: #f8f9fa;
    }

/* Карьерный путь */
.career-path {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.career-stage {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    flex: 1;
    min-width: 200px;
    margin: 0.5rem;
    position: relative;
    border-top: 3px solid #9b59b极端的;
}

.career-arrow {
    font-size: 1.5rem;
    color: #7f8c8d;
    padding: 0 0.5rem;
}

.stage-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #9b59b6;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Адаптивность карьерного пути */
@media (max-width: 900px) {
    .career-path {
        flex-direction: column;
    }

    .career-arrow {
        transform: rotate(90deg);
        margin: 1rem 0;
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .skills-table table,
    .comparison-table table,
    .tools-table table {
        font-size: 0.9rem;
    }

    .tips, .tools-grid, .skills-grid {
        grid-template-columns: 1fr;
    }
}
