﻿/* Temple Life / Telegram Section - Organic Design */
.temple-life {
    padding: var(--section-padding) 0;
    /* Используем те же цвета что и остальные секции */
    background: var(--cream);
    color: var(--charcoal);
    position: relative;
}

/* Без жирной полосы сверху */

.temple-life .section-header {
    margin-bottom: 50px;
}

.temple-life .section-tag {
    background: rgba(201, 162, 39, 0.15);
    color: var(--gold-dark);
}

.temple-life h2 {
    color: var(--charcoal);
}

.temple-life .section-desc {
    color: var(--charcoal-light);
}

.telegram-feed {
    max-width: 1000px;
    margin: 0 auto;
}

.telegram-posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 50px;
}

@media (min-width: 600px) {
    .telegram-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .telegram-posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.telegram-post-wrapper {
    /* Тёплый кремовый фон как у остального сайта */
    background: var(--white);
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(201, 162, 39, 0.2);
}

.telegram-post-wrapper:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: var(--gold);
}

.telegram-post-wrapper iframe {
    border-radius: 12px !important;
    max-width: 100% !important;
}

.telegram-subscribe {
    text-align: center;
    padding-top: 20px;
}

.subscribe-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 40px;
    background: var(--gradient-gold);
    color: var(--black);
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all var(--transition-smooth);
    box-shadow: var(--shadow-md);
}

.subscribe-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.subscribe-btn svg {
    width: 24px;
    height: 24px;
}

/* Loading spinner */
.telegram-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--charcoal-light);
    font-size: 1.1rem;
}

.telegram-loading::after {
    content: '';
    display: block;
    width: 36px;
    height: 36px;
    margin: 16px auto 0;
    border: 3px solid var(--cream-dark);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}