/*
Theme Name: Resonance
Theme URI: https://example.com
Author: Ваше имя
Description: Витрина музыкальных камней из полимерной глины с NFC-метками
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: resonance
*/

body {
    background-color: #0a0a0a;
    color: #e0e0e0;
    font-family: 'Inter', -apple-system, sans-serif;
    margin: 0;
    line-height: 1.6;
}

a { color: #d4af37; text-decoration: none; }

/* Hero секция камня */
.stone-hero {
    position: relative;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
}
.stone-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.2) 50%, transparent 100%);
}
.stone-hero-content { position: relative; z-index: 2; padding: 20px; width: 100%; text-align: center; }
.stone-tag { font-size: 12px; text-transform: uppercase; letter-spacing: 2px; color: #aaa; }
.stone-title { font-size: 32px; font-weight: 300; margin: 10px 0 30px; color: #fff; }

/* Контейнер плеера */
.stone-player-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.stone-player-icon svg {
    width: 40px;
    height: 40px;
    color: #d4af37;
    flex-shrink: 0;
}

.stone-player-embed {
    flex: 1;
    min-width: 0;
}

/* Адаптивная обёртка для видео */
.responsive-video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
}

.responsive-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Универсальные стили для iframe */
.stone-player-embed iframe {
    border-radius: 12px;
    max-width: 100%;
    border: none;
    display: block;
}

/* Аудио-плееры */
.stone-player-embed iframe[src*="spotify.com"] {
    height: 152px;
    width: 100%;
}

.stone-player-embed iframe[src*="soundcloud.com"] {
    height: 166px;
    width: 100%;
}

/* Ссылка-заглушка */
.stone-music-link {
    display: inline-block;
    padding: 12px 24px;
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid #d4af37;
    border-radius: 12px;
    color: #d4af37;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.stone-music-link:hover {
    background: rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .stone-player-container {
        flex-direction: column;
        padding: 15px;
    }

    .stone-player-icon svg {
        width: 32px;
        height: 32px;
    }
}

/* Сетка витрины */
.archive-hero { text-align: center; padding: 60px 20px 20px; }
.archive-hero h1 { font-weight: 300; font-size: 36px; color: #fff; }
.stones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.stone-card {
    background: #151515;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s;
}
.stone-card:hover { transform: translateY(-4px); }
.stone-card-image {
    height: 300px;
    background-size: cover;
    background-position: center;
}
.stone-card-info { padding: 15px; }
.stone-card-info h2 { margin: 0 0 5px; font-size: 18px; color: #fff; font-weight: 400; }
.stone-card-meta { font-size: 12px; color: #888; text-transform: uppercase; letter-spacing: 1px; }


.vk-player-wrapper {
    background: #1a1a1a;
    padding: 10px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
}


.stone-share-btn {
    margin-top: 20px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.stone-share-btn:hover {
    background: rgba(255,255,255,0.15);
}
