/* Импорт шрифтов */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: #0b0b1a;
    color: #e0e0e0;
    overflow-x: hidden;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    padding: 0 15px;
    margin: 0 auto;
}

/* Шапка */
header {
    background: linear-gradient(135deg, #1a0b2e 0%, #0d0d1a 100%);
    padding: 15px 0;
    border-bottom: 2px solid #7b2ffc;
    margin-bottom: 30px;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}
header h1 {
    font-size: 2.2rem;
    background: linear-gradient(45deg, #f093fb, #f5576c, #4facfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    margin: 0;
}
header .auth-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
header .auth-buttons span {
    color: #aaa;
    margin-right: 6px;
}

/* Карточки */
.card {
    background: rgba(20, 20, 40, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(123, 47, 252, 0.25);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.7);
    margin-bottom: 20px;
}
.card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 50px rgba(123, 47, 252, 0.3);
}
.card-body {
    padding: 20px;
}
.card-title {
    color: #fff;
    font-weight: 700;
}
.card-text {
    color: #e0e0e0;
}

/* Фото галерея – адаптивная сетка */
.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.photo-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 15px;
    border: 2px solid rgba(123, 47, 252, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}
.photo-item img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(123, 47, 252, 0.4);
}
.photo-item p {
    margin-top: 8px;
    text-align: center;
    font-size: 0.9rem;
    color: #bbb;
}

/* Аудио блоки */
.audio-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}
.audio-grid .card {
    width: 100%;
}
.audio-grid .card-body h5 {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.3rem;
    text-shadow: 0 0 10px rgba(123, 47, 252, 0.3);
}
.audio-grid .card-body p {
    color: #e0e0e0;
    font-size: 1rem;
    font-weight: 400;
}
.audio-grid .card-body audio {
    margin-top: 10px;
}
.audio-title {
    background: linear-gradient(45deg, #f093fb, #4facfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.6rem;
    font-weight: 800;
}

/* Комментарии */
.comments {
    background: rgba(10, 10, 30, 0.7);
    border-radius: 15px;
    padding: 15px;
    border: 1px solid rgba(123, 47, 252, 0.15);
}
.comments h6 {
    color: #f093fb;
    font-weight: 700;
}
.comments .border-bottom {
    border-color: rgba(255,255,255,0.05) !important;
}
.comments strong {
    color: #f093fb;
}
.comments .text-muted {
    color: #aaa !important;
}
.comments p {
    color: #fff;
    margin-bottom: 2px;
}

/* Кнопки */
.btn-primary {
    background: linear-gradient(45deg, #7b2ffc, #4facfe);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 50px;
    transition: all 0.3s;
    box-shadow: 0 0 20px rgba(123, 47, 252, 0.3);
}
.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 35px rgba(123, 47, 252, 0.6);
}
.btn-outline-danger {
    border-radius: 50px;
    transition: all 0.3s;
    font-weight: 600;
}
.btn-outline-danger:hover {
    background: #f5576c;
    border-color: #f5576c;
    box-shadow: 0 0 25px rgba(245, 87, 108, 0.5);
}
.btn-danger {
    border-radius: 50px;
    background: #f5576c;
    border-color: #f5576c;
    box-shadow: 0 0 20px rgba(245, 87, 108, 0.4);
}
.btn-danger:hover {
    background: #ff6b81;
    border-color: #ff6b81;
    box-shadow: 0 0 35px rgba(245, 87, 108, 0.7);
}

/* Яркие лайки */
.like-count {
    font-size: 1.2rem;
    font-weight: 800;
    color: #ff4081;
    text-shadow: 0 0 15px rgba(255, 64, 129, 0.8);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    animation: heartPulse 1.5s ease-in-out infinite;
}
@keyframes heartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* Декоративные иконки – скрываем на мобильных */
.deco-icon {
    position: fixed;
    font-size: 3.5rem;
    z-index: 0;
    pointer-events: none;
    user-select: none;
    opacity: 0.6;
    transition: opacity 0.3s;
}
.deco-vinyl {
    top: 10%;
    left: 5%;
    color: rgba(245, 87, 108, 0.5);
    font-size: 4rem;
    animation: spin 20s linear infinite;
}
.deco-mixer {
    bottom: 15%;
    right: 5%;
    color: rgba(79, 172, 254, 0.5);
    font-size: 3.5rem;
    animation: float 6s ease-in-out infinite;
}
.deco-headphones {
    top: 40%;
    right: 8%;
    color: rgba(240, 147, 251, 0.5);
    font-size: 3rem;
    animation: sway 4s ease-in-out infinite;
}
.deco-cdj {
    bottom: 35%;
    left: 8%;
    color: rgba(255, 215, 0, 0.5);
    font-size: 3.2rem;
    animation: spin 15s linear infinite reverse;
}
.deco-mic {
    top: 60%;
    left: 2%;
    color: rgba(0, 255, 200, 0.4);
    font-size: 2.5rem;
    animation: pulse 2s ease-in-out infinite;
}
.deco-speaker {
    bottom: 5%;
    left: 40%;
    color: rgba(255, 100, 100, 0.4);
    font-size: 3.8rem;
    animation: float 8s ease-in-out infinite;
}

/* Анимации */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}
@keyframes sway {
    0% { transform: rotate(-8deg); }
    50% { transform: rotate(8deg); }
    100% { transform: rotate(-8deg); }
}
@keyframes pulse {
    0% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 0.6; }
}

/* === АДАПТИВНОСТЬ === */
/* Телефоны */
@media (max-width: 576px) {
    header { flex-direction: column; align-items: center; text-align: center; }
    header h1 { font-size: 1.8rem; }
    header .auth-buttons { margin-top: 10px; }
    .photos-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
    .audio-grid { grid-template-columns: 1fr; }
    .deco-icon { display: none; }
    .card-body { padding: 15px; }
    .comments { padding: 10px; }
    .like-count { font-size: 1rem; }
}

/* Планшеты */
@media (max-width: 768px) {
    header h1 { font-size: 2rem; }
    .photos-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .audio-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
    .deco-icon { font-size: 2.5rem; }
    .deco-vinyl { font-size: 3rem; left: 2%; }
    .deco-speaker { font-size: 3rem; }
}

/* Ноутбуки и мелкие десктопы */
@media (max-width: 992px) {
    .deco-icon { opacity: 0.3; }
}

/* === КАРУСЕЛЬ ФОТО – СКОРОСТЬ СДВИГА === */
#photoCarousel .carousel-item {
    transition: transform 0.7s ease-in-out; /* 0.7 сек – быстрый и плавный сдвиг */
}
#photoCarousel .carousel-item-next,
#photoCarousel .carousel-item-prev {
    transition: transform 0.7s ease-in-out;
}

/* Дополнительно: стили для индикаторов и стрелок (можно оставить как есть или обновить) */
#photoCarousel {
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    margin-bottom: 30px;
    background: #1a1a2e;
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(123, 47, 252, 0.7);
    border-radius: 50%;
    padding: 20px;
    width: 50px;
    height: 50px;
    background-size: 60%;
}
.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
    background-color: #7b2ffc;
    box-shadow: 0 0 30px rgba(123, 47, 252, 0.6);
}
.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
}
.carousel-indicators .active {
    background: #7b2ffc;
    border-color: #7b2ffc;
}
.carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    border-radius: 12px;
    padding: 8px 16px;
    bottom: 20px;
    max-width: 80%;
    margin: 0 auto;
}
@media (max-width: 576px) {
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 30px;
        height: 30px;
        padding: 10px;
    }
    #photoCarousel .carousel-item img {
        max-height: 300px !important;
    }
}

.badge.bg-warning {
    background-color: #ffc107 !important;
    color: #212529 !important;
}

/* === ЯРКИЙ БЛОК АВТОРА В ПОСТАХ === */
.post-author {
    font-size: 0.95rem;          /* чуть крупнее */
    font-weight: 600;            /* полужирный */
    color: #e8e8ff;              /* светло-белый с синеватым оттенком */
    text-shadow: 0 0 8px rgba(123, 47, 252, 0.3); /* лёгкое свечение */
    margin-bottom: 6px;
}
.post-author .author-name {
    color: #ffffff;              /* чисто белый */
    font-weight: 700;
}
.post-author .author-role {
    font-weight: 500;
    opacity: 0.9;
}
.post-author .warnings-badge {
    margin-left: 6px;
}

/* ===== ПЕРЕОПРЕДЕЛЯЕМ СЕРЫЙ НА БЕЛЫЙ ===== */
.text-muted {
    color: #f0f0f0 !important; /* вместо #6c757d */
}
.text-secondary {
    color: #e0e0e0 !important;
}
.text-muted a {
    color: #b0b0ff !important; /* ссылки в сером блоке делаем светлыми */
}
.text-muted a:hover {
    color: #ffffff !important;
}
/* Для фонов с серым оттенком */
.bg-light {
    background-color: rgba(255,255,255,0.05) !important;
}
.bg-secondary {
    background-color: rgba(255,255,255,0.08) !important;
}
/* Для таблиц в админке */
.admin-table .text-muted {
    color: #e0e0e0 !important;
}
/* Для комментариев и других блоков */
.comments .text-muted {
    color: #d0d0d0 !important;
}

/* ======================================================
   АДАПТИВНЫЕ СТИЛИ ДЛЯ ПУБЛИЧНОЙ ЧАСТИ
   ====================================================== */

/* Мобильные устройства (до 576px) */
@media (max-width: 576px) {
    /* Шапка */
    header {
        flex-direction: column;
        text-align: center;
        padding: 12px 0;
    }
    header h1 {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }
    header .auth-buttons {
        justify-content: center;
        gap: 6px;
    }
    header .auth-buttons .btn {
        font-size: 0.7rem;
        padding: 4px 10px;
    }

    /* Карточки постов */
    .card {
        margin-bottom: 15px;
    }
    .card-body {
        padding: 15px;
    }
    .card-title {
        font-size: 1.2rem;
    }
    .card-text {
        font-size: 0.9rem;
    }

    /* Комментарии */
    .comments {
        padding: 10px;
    }
    .comments .border-bottom {
        padding: 6px 0;
    }
    .comments .btn-sm {
        font-size: 0.6rem;
        padding: 2px 6px;
    }

    /* Лайки */
    .like-count {
        font-size: 1rem;
    }

    /* Формы */
    .input-group {
        flex-wrap: wrap;
    }
    .input-group .form-control {
        width: 100%;
        margin-bottom: 8px;
        border-radius: 30px !important;
    }
    .input-group .btn {
        width: 100%;
        border-radius: 30px !important;
    }

    /* Пагинация */
    .pagination .page-link {
        font-size: 0.75rem;
        padding: 4px 8px;
    }

    /* Карусель */
    .carousel-inner {
        max-height: 250px !important;
    }
    .carousel-item img {
        max-height: 250px !important;
        object-fit: cover;
    }
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 30px;
        height: 30px;
        padding: 10px;
        background-size: 60%;
    }
    .carousel-indicators button {
        width: 8px;
        height: 8px;
    }

    /* Фото и аудио */
    .photos-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
    .audio-grid {
        grid-template-columns: 1fr;
    }

    /* Профиль */
    .profile-card {
        padding: 15px;
    }
    .profile-card .form-control {
        font-size: 0.85rem;
    }

    /* Страница заказа диджея */
    .dj-form-card {
        padding: 15px;
    }
    .dj-form-card .col-md-6 {
        margin-bottom: 10px;
    }
    .price-display {
        font-size: 1.4rem;
    }

    /* Футер */
    footer p {
        font-size: 0.7rem;
    }
}

/* Планшеты (от 577px до 768px) */
@media (min-width: 577px) and (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    .photos-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    .audio-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    .carousel-inner {
        max-height: 400px !important;
    }
    .carousel-item img {
        max-height: 400px !important;
    }
}

/* Ноутбуки и мелкие десктопы (769px – 992px) */
@media (min-width: 769px) and (max-width: 992px) {
    .photos-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    .audio-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

/* Крупные десктопы (>1200px) */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
}

/* ===== УЛУЧШЕННАЯ АДАПТИВНОСТЬ ===== */
@media (max-width: 576px) {
    header .container {
        padding: 0 10px;
    }
    header h1 {
        font-size: 1.5rem;
    }
    .btn-sm {
        font-size: 0.6rem !important;
        padding: 0.2rem 0.5rem !important;
    }
    .card-body {
        padding: 15px 10px;
    }
    .comments .input-group {
        flex-wrap: wrap;
    }
    .comments .input-group input {
        flex: 1 1 100%;
        margin-bottom: 5px;
    }
    .comments .input-group .btn {
        flex: 1 1 100%;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 12px;
    }
    .audio-grid {
        grid-template-columns: 1fr !important;
    }
    .photos-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
    }
    .footer .container p {
        font-size: 0.8rem;
    }
}

/* ===== АУДИО-КАРТОЧКИ И МОДАЛЬНОЕ ОКНО ===== */
.audio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.audio-card {
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}
.audio-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(123,47,252,0.3);
}
.audio-card .card {
    background: rgba(20,20,40,0.85);
    border: 1px solid rgba(123,47,252,0.25);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
    height: 100%;
}
.audio-card .card-body {
    padding: 15px;
}
.audio-card .card-title {
    font-size: 1.1rem;
    margin-bottom: 5px;
}
.audio-card .badge {
    margin-top: 10px;
}

/* Модальное окно */
.audio-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s;
}
.audio-modal.show {
    display: flex;
}
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
.modal-content {
    background: #0b0b1a;
    border-radius: 30px;
    margin: auto;
    padding: 30px;
    max-width: 700px;
    width: 90%;
    position: relative;
    border: 1px solid rgba(123,47,252,0.3);
    box-shadow: 0 0 60px rgba(123,47,252,0.2);
    animation: slideUp 0.4s ease;
}
@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.close-btn {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
    line-height: 1;
}
.close-btn:hover {
    color: #f5576c;
    transform: rotate(90deg);
}
.modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.modal-cover img {
    width: 100%;
    max-width: 600px;
    border-radius: 20px;
    box-shadow: 0 0 40px rgba(123,47,252,0.3);
    margin-bottom: 20px;
}
.modal-info {
    text-align: center;
    width: 100%;
}
.modal-info h2 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 5px;
}
.modal-info p {
    color: #ccc;
    margin-bottom: 8px;
}
.modal-info audio {
    margin-top: 15px;
}

@media (max-width: 576px) {
    .audio-grid {
        grid-template-columns: 1fr 1fr;
    }
    .modal-content {
        padding: 20px;
    }
    .modal-cover img {
        max-width: 100%;
    }
}

/* Ссылки на промокоды в баннере */
.promo-code-link {
    text-decoration: none;
    transition: all 0.2s;
    display: inline-block;
}
.promo-code-link:hover .promo-code {
    background: rgba(123, 47, 252, 0.35);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(123, 47, 252, 0.3);
    cursor: pointer;
}
.promo-code-link .promo-code {
    transition: all 0.2s;
    cursor: pointer;
}