

/* Hero */
.hero{padding:36px 0 8px;}
.breadcrumbs{display:flex;gap:8px;color:var(--text-dim);font-size:13px;margin-bottom:14px}
.breadcrumbs a{color:var(--text-dim)}
.hero-wrap{display:grid;grid-template-columns:1fr auto;gap:18px;align-items:end}
.hero h1{margin:0;font-size:36px;letter-spacing:.3px}
.hero p{margin:6px 0 0;color:var(--text-dim)}
.hero-actions{display:flex;gap:10px;align-items:center}
.chip{display:inline-flex;gap:8px;align-items:center;padding:8px 10px;border-radius:999px;background:rgba(124,92,255,.14);border:1px solid rgba(124,92,255,.35);font-size:13px}
.chip b{color:#fff}

/* Layout */
.layout { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; justify-content: center; }

/* Posts grid */
.posts{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.card{background:var(--surface);border:1px solid var(--stroke);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden;display:flex;flex-direction:column;max-height: 450px;}
.card-media{position:relative;aspect-ratio:16/9;background:linear-gradient(135deg,#1c1e27,#10131a);overflow:hidden}
.badges{position:absolute;left:12px;top:12px;}
.badge{padding:6px 10px;border-radius:999px;background:rgba(0,0,0,.45);backdrop-filter:blur(6px);border:1px solid var(--stroke);font-size:12px;color:#dfe3f0; margin-right: 5px}
.card-body{padding:14px 14px 12px;display:flex;flex-direction:column;gap:8px}
.meta{display:flex;gap:10px;align-items:center;color:var(--text-dim);font-size:13px}
.dot{width:4px;height:4px;border-radius:50%;background:var(--text-dim);opacity:.6}
.card h3{margin:2px 0 0;font-size:18px}
.card p{margin:0;color:var(--text-dim)}
.card:hover{transform:translateY(-2px);transition:.2s}

/* Views icon */
.meta .views{display:inline-flex;align-items:center;gap:6px}
.meta .views svg{width:14px;height:14px;opacity:.85;flex:0 0 14px}

/* Sidebar */
.side{display:flex;flex-direction:column;gap:18px}
.panel{background:var(--panel);border:1px solid var(--stroke);border-radius:var(--radius);box-shadow:var(--shadow);padding:14px}
.panel h4{margin:0 0 10px;font-size:15px;color:var(--text)}
.list{display:flex;flex-direction:column;gap:8px}
.list a{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:10px 10px;
    border-radius:10px;
    background:var(--bg);
    border:1px solid var(--stroke);
    color:var(--text)
}
.list a:hover{color:var(--text-dim);border-color:var(--muted)}
.subscribe{display:flex;gap:10px}
.input{min-width:0;padding:10px 12px;border-radius:12px;border:1px solid var(--stroke);background:#0f1117;color:#fff}
.btn{padding:10px 12px;border-radius:12px;background:linear-gradient(135deg,var(--brand),#6b8bff);border:0;color:#fff;font-weight:600}

/* Pagination */
.pagination{display:flex;justify-content:center;gap:8px;margin-top:28px;grid-column:1 / -1}
.page{padding:10px 12px;border-radius:10px;border:1px solid var(--stroke);color:var(--text-dim)}
.page.active{background:var(--muted);color:#fff;border-color:var(--brand)}

/* Общие стили таблицы */
.offer-parser {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    color: #333;
    max-width: 100%;
    overflow-x: auto;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.offer-parser .title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #2c3e50;
}

/* Стили для таблицы */
.offer-parser table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

/* Заголовок таблицы */
.offer-parser thead {
    background: #3498db;
    color: white;
}

.offer-parser th {
    padding: 12px 10px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
}

/* Строки таблицы */
.offer-parser tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background 0.2s;
}

.offer-parser tr:hover {
    background: #f5f9fc;
}

.offer-parser tr.new {
    font-weight: bolder;
    background: #f0f7ff;
}

.offer-parser tr.new:hover {
    background: #e1f0ff;
}

/* Ячейки таблицы */
.offer-parser td {
    padding: 12px 10px;
    vertical-align: top;
    word-break: break-word;
}

/* Стили для кнопок */
.offer-parser .buttons {
    display: flex;
    gap: 5px;
}

.offer-parser button {
    padding: 6px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s;
}

.offer-parser button[data-action="read"] {
    background: #3498db;
    color: white;
}

.offer-parser button[data-action="read"]:hover {
    background: #2980b9;
}

.offer-parser button[data-action="reject"] {
    background: #e74c3c;
    color: white;
}

.offer-parser button[data-action="reject"]:hover {
    background: #c0392b;
}

/* Ссылки */
.offer-parser a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.2s;
}

.offer-parser a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Адаптивность */
@media (max-width: 768px) {
    .offer-parser table {
        display: block;
    }
    .offer-parser th, .offer-parser td {
        padding: 8px 6px;
    }
    .offer-parser .buttons {
        flex-direction: column;
        gap: 3px;
    }
    .offer-parser button {
        padding: 5px 8px;
    }
}

.offer-parser tr.new{
    /*font-weight: bolder;*/
}
.offer-parser .source{
    width: 90px;
}
.offer-parser .title{
    width: 290px;
}
.offer-parser .description{
    /*width: 190px;*/
}
.offer-parser .price{
    width: 190px;
    font-size: 14px;
}
.offer-parser .url{
    width: 90px;
}
.offer-parser .buttons{
    width: 190px;
}
.offer-parser .date{
    width: 120px;
}

.wrapper.offer-parser .item{
    display: flex;
    flex-direction: column;
    padding: 20px 10px;;
}

.wrapper.offer-parser .item textarea{
    width: 700px;
}
.wrapper.offer-parser .item button{
    width: 100px;
}

.content.prompts{
    margin-top: 40px;
    margin-left: 100px;
    width: 1000px;
}

.content.prompts .source{
    margin: 40px 0;
}

.content.prompts .source .title{
    font-weight: 900;
    margin: 10px 0;
}

.content.prompts .source .categories_item{
    margin-bottom: 10px;
}

.content.prompts .prompt-item{
    display: flex;
    flex-direction: column;
}

.content.prompts .prompt-item .sort {
    display: flex;
    flex-direction: row;
    margin: 10px;
}
.content.prompts .prompt-item .btn {
    width: 100px;
    border-radius: 8px;
    margin: 10px;
    height: 30px;
}
.content.prompts .prompt-item .btn:hover {
    cursor: pointer;
    box-shadow: 2px 2px 10px rgba(255,255,255,0.5);
}
.content.prompts .prompt-item .sort input {
    margin-left: 15px;
    width: 60px;
}
.pagination {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    font-size: 21px;
    margin: 30px 0;
}

.pagination ul {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-column-gap: 5px;
    -moz-column-gap: 5px;
    column-gap: 5px;
    row-gap: 5px;
    text-align: center;
}

.pagination a {
    min-width: 18px;
    color: var(--text);
    background-color: var(--panel);
}

.pagination a:hover,
.pagination a.active {
    color: var(--btn-txt-active);
    background-color: var(--btn-bg-actite);
}

.add-resource-section {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #495057;
}

input[type="text"] {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.15s ease-in-out;
}

input[type="text"]:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.15s ease-in-out;
}

button:hover {
    background-color: #0069d9;
}

.selected-resources {
    background-color: #e8f4fd;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 30px;
    min-height: 60px;
    border: 1px dashed #b8daff;
}

.selected-resources h3 {
    margin-bottom: 10px;
    color: #004085;
}

.selected-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex-direction: column;
}

.selected-item {
    background-color: #cce5ff;
    color: #004085;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.selected-item .checkmark {
    margin-right: 5px;
    color: #28a745;
}

.resources-list {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.resources-list h3 {
    margin-bottom: 15px;
    color: #495057;
}

.resource-item {
    margin-bottom: 10px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    overflow: hidden;
}

.resource-header {
    background-color: #e9ecef;
    padding: 12px 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.15s ease-in-out;
}

.resource-header:hover {
    background-color: #dee2e6;
}

.resource-name {
    font-weight: 600;
    display: flex;
    align-items: center;
    color: black;
}

.resource-name .checkmark {
    margin-right: 10px;
    color: transparent;
    transition: color 0.15s ease-in-out;
}

.resource-name.selected .checkmark {
    color: #28a745;
}

.toggle-icon {
    color: #6c757d;
    transition: transform 0.3s ease-in-out;
}

.resource-item.expanded .toggle-icon {
    transform: rotate(180deg);
}

.subcategories {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    background-color: white;
}

.resource-item.expanded .subcategories {
    max-height: 500px;
}

.subcategory {
    padding: 10px 15px 10px 40px;
    border-bottom: 1px solid #f1f1f1;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background-color 0.15s ease-in-out;
    color: black;
}

.subcategory:hover {
    background-color: #f8f9fa;
}

.subcategory .checkmark {
    margin-right: 10px;
    color: transparent;
    transition: color 0.15s ease-in-out;
}

.subcategory.selected .checkmark {
    color: #28a745;
}

.empty-message {
    color: #6c757d;
    font-style: italic;
    text-align: center;
    padding: 20px;
}
.empty-message.hidden {
    display: none;
}

.auth {
    margin: 150px auto 0;
    max-width: 350px;
    border: 1px solid;
    border-radius: 15px;
    padding: 30px;
    background-color: #181b3f;
}

.form-item {
    margin: 30px 0;
}

.auth .title {
    font-size: xxx-large;
}

.auth .error {
    height: 30px;
    color: red;
}

/* ARTICLE */
.article{
    background:var(--panel); border:1px solid var(--stroke); border-radius:var(--radius);
    box-shadow:var(--shadow); margin:24px auto; padding:20px 18px; text-align:left;
}
.article h2{margin:18px 0 10px}
.article h3{margin:16px 0 8px}
.article p{color:var(--text)}
.lead{font-size:18px; color:#dfe3f0}

.note{
    padding:14px; border-radius:12px;
    background:rgba(124,92,255,.12); border:1px solid rgba(124,92,255,.35);
    color:#e9e4ff;
}
blockquote{
    margin:14px 0; padding:14px 16px; border-left:3px solid var(--brand);
    background:#0f1117; border-radius:12px; color:#e9e4ff;
}
pre{
    padding:14px; border-radius:12px; background:#0f1117;
    border:1px solid var(--stroke); overflow:auto
}
code{font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,"Liberation Mono","Courier New",monospace}


/* HERO */
.hero{padding:28px 0; text-align:left}
.breadcrumbs{display:flex; gap:8px; color:var(--text-dim); font-size:13px; margin-bottom:14px}
.hero h1{margin:6px 0 10px; font-size:38px; letter-spacing:.2px; text-align:center}
.meta{display:flex; gap:10px; align-items:center; justify-content:center; color:var(--text-dim); font-size:13px}
.dot{width:4px; height:4px; border-radius:50%; background:var(--text-dim); opacity:.6}
.cover{margin-top:16px; border-radius:18px; overflow:hidden; border:1px solid var(--stroke); box-shadow:var(--shadow)}


/* RELATED */
.related{margin:40px auto}
.grid-3{display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:18px}
.card{background:var(--surface); border:1px solid var(--stroke); border-radius:var(--radius); box-shadow:var(--shadow); overflow:hidden}
.card img{width:100%; aspect-ratio:16/9; object-fit:cover}
.card .body{padding:12px}
.card h3{margin:6px 0; font-size:18px}
.card p{color:var(--text-dim); font-size:14px}


/* SHARE */
.share{display:flex; gap:8px; flex-wrap:wrap; margin:20px 0; justify-content:center}

.ghost{
    padding:10px 12px; border-radius:12px; border:1px solid var(--stroke); background:#0f1117; color:#fff
}

header .login{
    font-weight: 900;
    font-size: large;
    color: var(--brand);
    text-shadow: 2px 2px 13px #7c5cff99;
}