/* static/css/style.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #223b3c;
    font-family: 'Georgia', 'Times New Roman', Times, serif;
    color: #2b2a27;
    line-height: 1.6;
    padding: 2rem 1rem;
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

#snow-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    opacity: 0.8;
}

.page {
    max-width: 1100px;
    margin: 0 auto;
    background-color: #fcf9f2;
    box-shadow: 0 25px 45px rgba(0, 10, 10, 0.5);
    border-radius: 40px;
    padding: 2.3rem 2.5rem;
    border: 1px solid #cbb295;
    position: relative;
    z-index: 10;
    backdrop-filter: blur(0.5px);
}

.header-strip {
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.strip-block {
    height: 8px;
    flex: 1 1 70px;
    background-color: #b8946e;
    border-radius: 30px;
}

.strip-block:nth-child(2) {
    background-color: #8b6b50;
}

.strip-block:nth-child(3) {
    background-color: #956b40;
}

.strip-block:nth-child(4) {
    background-color: #b57e5b;
}

.strip-block:nth-child(5) {
    background-color: #ab8a6e;
}

h1 {
    font-size: 2.5rem;
    font-weight: normal;
    letter-spacing: 0.5px;
    color: #3b322a;
    border-left: 6px solid #956b40;
    padding-left: 1.3rem;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
    text-wrap: pretty;
}

h1 strong {
    font-weight: 500;
    background: linear-gradient(150deg, #6f4e2e 10%, #3f5e4a 90%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subhead {
    font-style: italic;
    color: #6b5843;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    border-bottom: 1px dashed #cfb79b;
    padding-bottom: 0.7rem;
}

.greeting-card {
    background-color: #efe1d2;
    border-radius: 40px;
    padding: 1.8rem 2.3rem;
    margin: 2rem 0 2.5rem 0;
    font-size: 1.1rem;
    box-shadow: inset 0 1px 6px rgba(255, 240, 225, 0.8), 0 8px 20px rgba(80, 50, 20, 0.1);
    border: 1px solid #ddc7b2;
}

.greeting-card p {
    margin-bottom: 1rem;
}

.stat-block {
    display: flex;
    gap: 2.2rem;
    background: white;
    padding: 1.2rem 2rem;
    border-radius: 60px;
    border: 1px solid #d4bcac;
    margin: 1.5rem 0 2rem 0;
    flex-wrap: wrap;
    justify-content: center;
}

.stat-item {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-item span {
    font-weight: bold;
    background: #6f8a72;
    color: white;
    padding: 0.2rem 1.2rem;
    border-radius: 40px;
    font-size: 0.95rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 400;
    border-bottom: 2px solid #956b40;
    padding-bottom: 0.3rem;
    margin: 2.8rem 0 1.5rem 0;
    display: inline-block;
    letter-spacing: 0.5px;
}

.section-subtitle {
    font-size: 1.5rem;
    color: #4d3e2e;
    margin: 2rem 0 1rem 0;
    font-weight: 400;
    border-left: 5px solid #b57e5b;
    padding-left: 1.2rem;
}

.motifs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem 2.5rem;
    background: #f4e8da;
    padding: 2rem 2.3rem;
    border-radius: 48px;
    margin: 1.5rem 0 2rem 0;
    border: 1px solid #dfcab3;
}

.motif-cat {
    font-weight: 600;
    color: #7b5b41;
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
    border-bottom: 1px dotted #c0a181;
    display: inline-block;
}

.motif-desc {
    color: #3f3a33;
}

.color-symbol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1.5rem;
    margin: 1.2rem 0 2rem 0;
    background: #f4e8dc;
    padding: 1.2rem 2.2rem;
    border-radius: 60px;
}

.color-dot {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    margin-right: 8px;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 2px 3px rgba(0,0,0,0.05);
}

.color-item {
    display: flex;
    align-items: center;
    background: white;
    padding: 0.3rem 1.2rem 0.3rem 0.7rem;
    border-radius: 40px;
    box-shadow: 0 3px 7px #dac2ab;
    font-size: 0.95rem;
}

.step-list {
    list-style: none;
    counter-reset: step-counter;
}

.step-list li {
    counter-increment: step-counter;
    margin-bottom: 2.2rem;
    position: relative;
    padding-left: 3.2rem;
    font-size: 1.05rem;
}

.step-list li::before {
    content: counter(step-counter);
    background-color: #6f8a72;
    color: white;
    font-weight: bold;
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: -0.3rem;
    top: 0rem;
    font-size: 1rem;
    border: 2px solid #ecdacb;
}

.material-block {
    background: #e1cfbb;
    border-radius: 36px;
    padding: 1.7rem 2.2rem;
    margin: 2.2rem 0;
    border-left: 15px solid #956b40;
    box-shadow: 0 5px 12px rgba(80, 50, 20, 0.15);
}

.material-block p {
    margin-bottom: 0.7rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tip-box {
    background: #fef3e6;
    border-radius: 30px;
    padding: 1.3rem 2rem;
    border: 2px solid #bc926b;
    margin: 2rem 0 1rem;
}

hr {
    border: none;
    border-top: 3px dotted #b28b6b;
    margin: 2.5rem 0;
}

small {
    color: #6e5c4b;
}

.numbers-row {
    display: flex;
    gap: 25px;
    align-items: center;
    background: #e1cfbb;
    border-radius: 60px;
    padding: 1rem 2rem;
    margin: 2.2rem 0;
    flex-wrap: wrap;
}

.number-badge {
    background: #6f8a72;
    color: white;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.photo-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0;
    justify-content: center;
}

.photo-card {
    flex: 1 1 200px;
    min-width: 180px;
    background: #fff8f0;
    border-radius: 32px;
    padding: 16px 16px 20px;
    box-shadow: 0 8px 18px rgba(100, 60, 30, 0.12);
    border: 1px solid #e2cfbb;
    transition: transform 0.2s ease;
}

.photo-card:hover {
    transform: translateY(-6px);
}

.photo-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 24px;
    background: #cfb8a4;
    border: 2px solid white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: opacity 0.2s;
}

.photo-card img:hover {
    opacity: 0.9;
}

.photo-card p {
    text-align: center;
    margin-top: 12px;
    font-style: italic;
    color: #4d4239;
    font-size: 0.95rem;
}

.clickable-img {
    cursor: pointer;
    transition: opacity 0.2s, box-shadow 0.2s;
}

.clickable-img:hover {
    opacity: 0.9;
    box-shadow: 0 8px 18px rgba(70, 40, 15, 0.25);
}

.hero-img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 40px;
    margin: 25px 0 15px;
    border: 3px solid white;
    box-shadow: 0 12px 28px rgba(30, 30, 20, 0.25);
    cursor: pointer;
}

.two-col-img {
    display: flex;
    gap: 20px;
    margin: 20px 0 30px;
    flex-wrap: wrap;
}

.two-col-img img {
    flex: 1 1 250px;
    height: 200px;
    object-fit: cover;
    border-radius: 32px;
    border: 2px solid #e3cfbb;
    box-shadow: 0 8px 16px #bda98c;
    cursor: pointer;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 24px;
    border: 4px solid #fcf9f2;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #f1f1f1;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    background: rgba(50, 30, 10, 0.3);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    line-height: 1;
}

.modal-close:hover {
    color: #e8dbcf;
    background: rgba(80, 50, 20, 0.7);
    transform: rotate(90deg);
}

.player-card {
    background: linear-gradient(145deg, #f0e4d6, #e6d6c4);
    border-radius: 60px;
    padding: 1.5rem 2rem;
    margin: 1.8rem 0;
    border: 1px solid #d2b89c;
    box-shadow: 0 10px 18px rgba(110, 70, 30, 0.15);
    transition: box-shadow 0.3s ease;
}

.player-card:hover {
    box-shadow: 0 14px 24px rgba(90, 60, 25, 0.2);
}

.player-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 1.2rem;
    font-size: 1.5rem;
    color: #4b3f33;
    border-bottom: 2px solid #b4916e;
    padding-bottom: 0.6rem;
}

.player-title span {
    background: #7d6956;
    color: white;
    border-radius: 50px;
    padding: 0.2rem 1.2rem;
    font-size: 0.95rem;
    font-weight: 300;
    letter-spacing: 1px;
}

audio {
    width: 100%;
    border-radius: 40px;
    outline: none;
    background: #f1e3d3;
    box-shadow: inset 0 2px 5px #bbaa99, 0 4px 8px #ccb79f;
}

audio::-webkit-media-controls-panel {
    background-color: #f2e2d2;
    border-radius: 40px;
}

blockquote {
    background: #efe1d2;
    padding: 1.2rem 2rem;
    border-radius: 40px;
    font-style: italic;
    border-left: 8px solid #6f8a72;
    margin: 2rem 0;
    color: #2e2b26;
}

@media (max-width: 700px) {
    .page {
        padding: 1.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    .motifs-grid {
        grid-template-columns: 1fr;
    }

    .stat-block {
        flex-direction: column;
        gap: 0.8rem;
    }

    .two-col-img img {
        height: 170px;
    }
    
    .modal-close {
        top: 15px;
        right: 20px;
        font-size: 40px;
    }
    
    .player-title {
        font-size: 1.2rem;
        flex-wrap: wrap;
    }
}