/* Copyright (C) 2025-2026 adcitymag.ru */
/* Стили вынесены из шаблона magazine_content.php */
/* Основной контейнер с максимальной шириной как в single-real_estate.php */
.magazine-container {
    max-width: var(--width);
    margin: 0 auto;
    padding: 20px;
    font-family: var(--primeFont);
}

/* Заголовок выпуска */
.issue-header {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
    align-items: flex-start;
    padding: 30px 0;
    border-bottom: 2px solid var(--borderColor);
}

/* Обложка журнала */
.issue-cover {
    flex-shrink: 0;
}

.issue-cover img {
    width: 280px;
    height: auto;
    border-radius: var(--adcm-r-sm, 8px);
    box-shadow: var(--adcm-shadow-3, 0 8px 24px rgba(0, 0, 0, 0.15));
    transition: transform var(--adcm-dur-base, .22s) ease;
}

.issue-cover img:hover {
    transform: translateY(-4px);
    box-shadow: var(--adcm-shadow-3, 0 12px 32px rgba(0, 0, 0, 0.2));
}

.issue-cover-placeholder {
    width: 280px;
    height: 396px;
    background: linear-gradient(135deg, var(--borderColor) 0%, var(--bgColor) 100%);
    border-radius: var(--adcm-r-sm, 8px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--greyColor);
    font-size: var(--t-ui, 14px);
    text-align: center;
    padding: 20px;
    box-shadow: var(--adcm-shadow-3, 0 8px 24px rgba(0, 0, 0, 0.1));
}

/* Мета-информация о выпуске */
.issue-meta {
    flex: 1;
    min-width: min(300px, 100%);
}

.issue-meta h1 {
    font-size: 42px;
    font-weight: var(--bold);
    margin: 0 0 20px 0;
    color: var(--headColor);
    line-height: 1.2;
}

.issue-authors, 
.issue-tags {
    color: var(--greyColor);
    font-size: var(--t-card, 15px);
    margin-bottom: 12px;
    font-weight: var(--medium);
}

.issue-authors strong,
.issue-tags strong {
    color: var(--textColor);
}

/* Описание с раскрытием */
.desc-short {
    margin-top: 16px;
    line-height: 1.7;
    font-size: var(--t-body, 16px);
    color: var(--textColor);
}

.desc-expand {
    cursor: pointer;
    margin-top: 12px;
    color: var(--accentColor);
    font-weight: var(--medium);
    font-size: var(--t-card, 15px);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color var(--adcm-dur-fast, .15s) ease;
}

.desc-expand:hover {
    color: var(--headColor);
}

.desc-expand::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border: 5px solid transparent;
    border-top-color: currentColor;
    border-bottom-width: 0;
    transition: transform var(--adcm-dur-fast, .15s) ease;
}

.desc-expand.open::after {
    transform: rotate(180deg);
}

.desc-full {
    display: none;
    margin-top: 16px;
    line-height: 1.7;
    font-size: var(--t-body, 16px);
    color: var(--textColor);
}

.desc-full.open {
    display: block;
}

/* Заголовки разделов */
.section-title {
    font-size: 28px;
    font-weight: var(--bold);
    border-left: 4px solid var(--accentColor);
    padding-left: 16px;
    margin: 60px 0 30px;
    color: var(--headColor);
}

/* Сетка статей */
.issue-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

/* Карточка статьи */
.article-card {
    background: var(--bgColor);
    border: 1px solid var(--borderColor);
    border-radius: var(--adcm-r-md, 12px);
    padding: 20px;
    transition: all var(--adcm-dur-base, .22s) ease;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--adcm-shadow-3, 0 8px 24px rgba(0, 0, 0, 0.12));
    border-color: var(--accentColor);
}

/* Миниатюра */
.article-card .thumb {
    margin-bottom: 16px;
    border-radius: var(--adcm-r-sm, 8px);
    overflow: hidden;
    aspect-ratio: 16/9;
    background: var(--borderColor);
}

.article-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--adcm-dur-base, .22s) ease;
}

.article-card:hover .thumb img {
    transform: scale(1.05);
}

/* Заголовок статьи */
.article-card h3 {
    font-size: var(--t-card-lg, 18px);
    font-weight: var(--bold);
    margin: 0 0 12px 0;
    color: var(--headColor);
    line-height: 1.4;
}

.article-card h3 a {
    color: var(--headColor);
    text-decoration: none;
    transition: color var(--adcm-dur-fast, .15s) ease;
}

.article-card h3 a:hover {
    color: var(--accentColor);
}

/* Мета-информация */
.article-card .meta {
    font-size: var(--t-meta, 13px);
    color: var(--greyColor);
    margin-bottom: 12px;
    font-weight: var(--medium);
}

/* Анонс */
.article-card .excerpt {
    font-size: var(--t-card, 15px);
    line-height: 1.6;
    color: var(--textColor);
    flex-grow: 1;
}

/* Раскрывающийся список дополнительных статей */
.more-articles {
    background: var(--bgColor);
    border: 1px solid var(--borderColor);
    border-radius: var(--adcm-r-md, 12px);
    padding: 20px;
    grid-column: 1 / -1;
}

.more-articles summary {
    font-size: var(--t-body, 16px);
    font-weight: var(--medium);
    cursor: pointer;
    color: var(--accentColor);
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color var(--adcm-dur-fast, .15s) ease;
}

.more-articles summary::-webkit-details-marker {
    display: none;
}

.more-articles summary::before {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border: 5px solid transparent;
    border-left-color: currentColor;
    border-right-width: 0;
    transition: transform var(--adcm-dur-fast, .15s) ease;
}

.more-articles[open] summary::before {
    transform: rotate(90deg);
}

.more-articles summary:hover {
    color: var(--headColor);
}

.more-articles-list {
    margin-top: 16px;
    display: grid;
    gap: 12px;
}

.more-article-item {
    padding: 12px;
    background: var(--bgLight);
    border-radius: var(--adcm-r-sm, 8px);
    transition: background var(--adcm-dur-fast, .15s) ease;
}

.more-article-item:hover {
    background: var(--borderColor);
}

.more-article-item a {
    color: var(--headColor);
    text-decoration: none;
    font-weight: var(--medium);
    transition: color var(--adcm-dur-fast, .15s) ease;
}

.more-article-item a:hover {
    color: var(--accentColor);
}

.more-article-item .meta {
    color: var(--greyColor);
    font-size: var(--t-meta, 13px);
    margin-left: 8px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .issue-header {
        gap: 24px;
    }
    
    .issue-cover img,
    .issue-cover-placeholder {
        width: 100%;
        max-width: 240px;
        margin: 0 auto;
        display: block;
    }
    
    .issue-cover-placeholder {
        height: 340px;
    }
    
    .issue-meta h1 {
        font-size: 32px;
    }
    
    .section-title {
        font-size: var(--t-h2, 24px);
        margin: 40px 0 20px;
    }
    
    .issue-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .magazine-container {
        padding: 16px;
    }
    
    .issue-meta h1 {
        font-size: 28px;
    }
    
    .article-card {
        padding: 16px;
    }
}
