/**
 * СТИЛИ ДЛЯ СИСТЕМЫ ШОРТКОДОВ
 * 
 * CSS стили для всех типов блоков, создаваемых системой шорткодов
 */

/* ========================================
   ОСНОВНЫЕ СТИЛИ БЛОКОВ
   ======================================== */

.shortcode-demo {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.shortcode-demo h2,
.shortcode-demo h3 {
    color: #333;
    margin-top: 20px;
    margin-bottom: 10px;
}

.shortcode-demo pre {
    background: #f0f0f0;
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
}

.rendered-content {
    border: 1px solid #ddd;
    padding: 20px;
    background: white;
    border-radius: 4px;
}

/* ========================================
   БЛОКИ ФАЙЛОВ
   ======================================== */

.file-block {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.file-block:hover {
    background: #e9ecef;
    border-color: #007bff;
}

.file-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.file-link:hover {
    color: #007bff;
}

.file-icon {
    font-size: 24px;
    margin-right: 10px;
}

.file-name {
    font-size: 16px;
}

/* ========================================
   ГАЛЕРЕЯ
   ======================================== */

.gallery-block {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* ========================================
   ВАЖНЫЙ БЛОК
   ======================================== */

.important-block {
    display: flex;
    align-items: flex-start;
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.important-block__icon {
    margin-right: 15px;
    flex-shrink: 0;
}

.important-block__icon img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.important-block__content {
    flex: 1;
    font-size: 16px;
    line-height: 1.6;
}

/* ========================================
   ВИДЕО БЛОК
   ======================================== */

.video-block {
    margin: 20px 0;
    text-align: center;
}

.video-block video {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* ========================================
   КАРТА БЛОК
   ======================================== */

.map-block {
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.map-block iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* ========================================
   ФОРМА БЛОК
   ======================================== */

.form-block {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

/* ========================================
   АДАПТИВНОСТЬ
   ======================================== */

@media (max-width: 768px) {
    .gallery-block {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .gallery-item img {
        height: 150px;
    }
    
    .important-block {
        flex-direction: column;
        text-align: center;
    }
    
    .important-block__icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .file-link {
        flex-direction: column;
        text-align: center;
    }
    
    .file-icon {
        margin-right: 0;
        margin-bottom: 5px;
    }
}

/* ========================================
   АНИМАЦИИ
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.file-block,
.gallery-item,
.important-block,
.video-block,
.map-block,
.form-block {
    animation: fadeInUp 0.6s ease-out;
}

/* ========================================
   СООБЩЕНИЕ ОБ ОТСУТСТВИИ КОНТЕНТА (удалено)
   ======================================== */

/* ========================================
   ДОПОЛНИТЕЛЬНЫЕ УТИЛИТЫ
   ======================================== */

.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-20 {
    margin-top: 20px;
}

.p-20 {
    padding: 20px;
}

.border-radius {
    border-radius: 8px;
}

.shadow {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
