/* ========== ПІДКЛЮЧЕННЯ ШРИФТІВ ========== */
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@300;400;500;600;700&display=swap');

/* ========== ЗАГАЛЬНІ СТИЛІ ========== */
body {
    background: #1A1619;
    margin: 0;
    padding: 0;
    font-family: 'Lora', serif;
    color: #B8B0A3;
    line-height: 1.6;
    font-size: 18px;
}

/* ========== САЙДБАР ========== */
.sidebar {
    width: 260px;
    background: #0F0D10;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 30px 0 0 0;
    border-right: 1px solid #4A2E2B;
}

.sidebar img {
    display: block;
    width: 250px;
    height: 200.203px;
    object-fit: cover;
    margin: 0 auto 15px auto;
    border-radius: 8px;
    flex-shrink: 0;
}

.logo {
    text-align: center;
    font-size: 28px;
    font-weight: 400;
    letter-spacing: 2px;
    color: #A67C52;
    margin-bottom: 30px;
    font-family: 'Great Vibes', cursive;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
    overflow-y: auto;
    padding-bottom: 20px;
}

.sidebar ul li a {
    color: #9A9285;
    text-decoration: none;
    display: block;
    padding: 10px 30px;
    transition: 0.2s;
    font-family: 'Exo 2', sans-serif;
    font-weight: 300;
    letter-spacing: 1px;
}

.sidebar ul li a:hover {
    background: #2A1E20;
    color: #D4AF37;
    border-left: 2px solid #A67C52;
}

/* Стилізація прокрутки для меню */
.sidebar ul::-webkit-scrollbar {
    width: 3px;
}

.sidebar ul::-webkit-scrollbar-track {
    background: #1A1619;
}

.sidebar ul::-webkit-scrollbar-thumb {
    background: #4A2E2B;
    border-radius: 3px;
}

/* ========== ОСНОВНИЙ КОНТЕНТ ========== */
.content {
    margin-left: 260px;
    padding: 50px 60px;
    min-height: 100vh;
    background: rgba(26, 22, 25, 0.7);
}

/* Заголовки на головній сторінці */
.content h1 {
    text-align: center;
    font-family: 'Great Vibes', cursive;
    font-size: 48px;
    color: #C2A87D;
    margin-bottom: 20px;
    font-weight: 400;
    letter-spacing: 2px;
    display: block;
}

.content h1:first-of-type + h1 {
    font-size: 36px;
    margin-top: -15px;
    margin-bottom: 40px;
    opacity: 0.9;
    display: block;
    text-align: center;
}

h2, h3 {
    color: #C2A87D;
}

.content a {
    color: #A67C52;
    text-decoration: none;
    border-bottom: 1px dotted #A67C52;
}

.content a:hover {
    color: #D4AF37;
}

/* ========== РОЗДІЛ СТИХІВ ========== */
/* Стилі для списку циклів на сторінці poems.html */
.poems-container {
    max-width: 800px;
    margin: 0 auto;
}

.cycle {
    margin-bottom: 50px;
    border-left: 2px solid #4A2E2B;
    padding-left: 25px;
}

.cycle-title {
    font-family: 'Exo 2', sans-serif;  /* ← ШРИФТ ДЛЯ НАЗВ ЦИКЛІВ */
    font-size: 28px;
    font-weight: 500;
    color: #C2A87D;
    margin: 0 0 15px 0;
    cursor: pointer;
    display: inline-block;
    transition: 0.3s;
}

.cycle-title:hover {
    color: #D4AF37;
    letter-spacing: 1px;
}

.toggle-icon {
    display: inline-block;
    margin-left: 10px;
    font-size: 18px;
    color: #A67C52;
}

.cycle-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.poem-count {
    font-size: 14px;
    color: #A67C52;
    margin-left: 15px;
    font-family: 'Exo 2', sans-serif;
}

.poem-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: block;
}

.poem-list li {
    margin-bottom: 8px;
}

.poem-list a {
    color: #B8B0A3;
    text-decoration: none;
    font-family: 'Lora', serif;
    font-size: 16px;
    border-bottom: 1px dotted #4A2E2B;
    transition: 0.2s;
}

.poem-list a:hover {
    color: #D4AF37;
    border-bottom-color: #D4AF37;
    padding-left: 5px;
}

/* ========== СТОРІНКИ ОКРЕМИХ ВІРШІВ ========== */
.poem {
    max-width: 700px;
    margin: 0 auto;
    font-family: 'Yu Gothic UI Light', 'Yu Gothic UI', 'Segoe UI Light', 'Helvetica Neue', 'Roboto Light', sans-serif;
    font-weight: 300;
    font-size: 17px;
    line-height: 1.5;
    color: #B8B0A3;
}

.poem h2 {
    text-align: center;
    font-family: 'Great Vibes', cursive;
    font-size: 32px;
    color: #C2A87D;
    margin-bottom: 30px;
    margin-top: 0;
    font-weight: 400;
}

.poem p {
    margin: 0 0 4px 0;
    padding: 0;
    text-align: left;
    letter-spacing: 0.3px;
}

/* Строфи */
.poem .stanza {
    margin-bottom: 20px;
}

.poem .stanza:last-child {
    margin-bottom: 0;
}

/* Підзаголовки в поемі (наприклад, *** І. Безумство ***) */
.poem .subtitle {
    text-align: center;
    font-weight: bold;
    font-style: italic;
    color: #C2A87D;
    margin: 30px 0 20px 0;
    letter-spacing: 2px;
    font-family: 'Exo 2', sans-serif;
    font-size: 18px;
}

.poem .date {
    margin-top: 30px;
    margin-bottom: 10px;
    text-align: right;
    font-size: 13px;
    color: #A67C52;
    font-style: italic;
    font-family: 'Exo 2', sans-serif;
}

.poem .back {
    margin-top: 40px;
    text-align: center;
}

.poem .back a {
    color: #A67C52;
    text-decoration: none;
    border-bottom: 1px dotted #A67C52;
    font-family: 'Exo 2', sans-serif;
}

.poem .back a:hover {
    color: #D4AF37;
}

/* ========== РОЗДІЛ «ФАЙЛИ» (БІБЛІОТЕКА) ========== */
.file-list {
    margin-top: 40px;
}

.file-item {
    display: flex;
    gap: 20px;
    background: rgba(15, 13, 16, 0.6);
    padding: 25px;
    margin-bottom: 25px;
    border-left: 2px solid #A67C52;
    border-radius: 0 8px 8px 0;
    transition: 0.3s;
}

.file-item:hover {
    background: rgba(15, 13, 16, 0.9);
    transform: translateX(5px);
}

.file-icon {
    font-size: 48px;
}

.file-info h3 {
    margin: 0 0 10px 0;
    color: #C2A87D;
}

.file-info p {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #B8B0A3;
}

.file-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.file-link {
    display: inline-block;
    padding: 6px 16px;
    background: #2A1E20;
    color: #D4AF37;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    font-family: 'Exo 2', sans-serif;
    transition: 0.3s;
}

.file-link:hover {
    background: #4A2E2B;
    color: #FFD700;
}

/* ========== РОЗДІЛЮВАЧ «РАННЯ ТВОРЧІСТЬ» ========== */
.early-works-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 40px 0 30px 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #4A2E2B, #4A2E2B, transparent);
}

.divider-text {
    font-family: 'Great Vibes', cursive;
    font-size: 20px;
    color: #C2A87D;
    letter-spacing: 2px;
    white-space: nowrap;
}

/* ========== АДАПТАЦІЯ ДЛЯ ТЕЛЕФОНІВ ========== */
@media (max-width: 700px) {
    body {
        font-size: 16px;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: static;
        border-right: none;
        border-bottom: 1px solid #4A2E2B;
        display: block;
        padding: 15px 0;
        text-align: center;
    }
    
    .sidebar img {
        width: 80px;
        margin: 0 auto 10px auto;
    }
    
    .logo {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .sidebar ul {
        overflow-y: visible;
        padding-bottom: 0;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }
    
    .sidebar ul li {
        display: inline-block;
        margin: 0;
    }
    
    .sidebar ul li a {
        padding: 8px 16px;
        font-size: 14px;
        display: inline-block;
    }
    
    .sidebar ul li a:hover {
        border-left: none;
        border-bottom: 2px solid #A67C52;
    }
    
    .content {
    margin-left: 260px;
    padding: 50px 60px;
    min-height: 100vh;
    background-color: #1A1619;
    background-image: 
        repeating-linear-gradient(135deg, rgba(75, 55, 65, 0.15) 0px, rgba(75, 55, 65, 0.15) 1px, transparent 1px, transparent 15px),
        repeating-linear-gradient(45deg, rgba(65, 45, 55, 0.1) 0px, rgba(65, 45, 55, 0.1) 1px, transparent 1px, transparent 12px),
        radial-gradient(ellipse at 50% 50%, rgba(90, 65, 75, 0.08) 0%, transparent 80%);
    background-blend-mode: overlay;
}
    
    h1 {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .stih {
        padding-left: 12px;
        margin-bottom: 30px;
    }
    
    .stih::after {
        font-size: 16px;
        margin-top: 16px;
    }
    
    /* Адаптація для файлів */
    .file-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .file-links {
        justify-content: center;
    }
    
    /* Адаптація для роздільника */
    .early-works-divider {
        gap: 8px;
    }
    
    .divider-text {
        font-size: 16px;
    }
    
    .cycle-title {
        font-size: 22px;
    }
}/* Роздільник між циклами (PNG) */
.cycle-divider {
    text-align: center;
    margin: 40px 0 35px 0;
}

.cycle-divider img {
    max-width: 150px;
    height: auto;
    opacity: 0.6;
    transition: 0.3s;
}

.cycle-divider img:hover {
    opacity: 1;
}.cycle-divider {
    text-align: center;
    margin: 25px 0 35px 0;
}

.cycle-divider img {
    max-width: 100px;      /* розмір вашого роздільника */
    height: auto;
    display: inline-block; /* важливо для центрування */
    opacity: 0.6;
    transition: 0.3s;
}

.cycle-divider img:hover {
    opacity: 1;
}/* Роздільник між збірками (PNG) */
.cycle-divider {
    text-align: center;
    margin: 30px 0 40px 0;
}

.cycle-divider img {
    max-width: 160px;        /* збільшили розмір */
    height: auto;
    display: inline-block;
    opacity: 0.7;
    transition: 0.3s;
    filter: brightness(0) saturate(100%) invert(67%) sepia(34%) saturate(524%) hue-rotate(2deg) brightness(92%) contrast(87%);
    /* ↑ це робить зображення золотистим (#D4AF37) */
}

.cycle-divider img:hover {
    opacity: 1;
    filter: brightness(0) saturate(100%) invert(74%) sepia(35%) saturate(825%) hue-rotate(2deg) brightness(98%) contrast(92%);
    /* трохи яскравіший золотий при наведенні */
}