/* styles.css - Styl pseudo-religijny dla Centrum Michała Woźnickiego */

/* Import czcionki */
@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@0,400;0,700;1,400&family=Uncial+Antiqua&display=swap');

/* Reset i podstawy */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Crimson Text', Georgia, serif;
    background: linear-gradient(135deg, #1a0a2e 0%, #2d1b4e 25%, #1a0a2e 50%, #2d1b4e 75%, #1a0a2e 100%);
    background-attachment: fixed;
    color: #e8d5b0;
    min-height: 100vh;
    padding: 40px 20px;
    position: relative;
    overflow-x: hidden;
}

/* Subtelny wzór w tle - pseudo-witraż */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(255, 215, 0, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Główny kontener */
body > * {
    position: relative;
    z-index: 1;
}

/* Nagłówek główny - pseudo-herb */
h1:first-child {
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 3.5rem;
    text-align: center;
    color: #ffd700;
    text-shadow:
        0 0 20px rgba(255, 215, 0, 0.5),
        0 0 40px rgba(255, 215, 0, 0.3),
        2px 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0 auto 30px;
    padding: 30px 20px;
    max-width: 800px;
    border: 3px solid #ffd700;
    border-image: linear-gradient(135deg, #ffd700, #b8860b, #ffd700) 1;
    background: linear-gradient(180deg, rgba(139, 90, 43, 0.3) 0%, rgba(0, 0, 0, 0.4) 100%);
    position: relative;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Dekoracyjne krzyżyki przy nagłówku */
h1:first-child::before,
h1:first-child::after {
    content: '†';
    font-size: 2rem;
    color: #ffd700;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
}

h1:first-child::before {
    left: 20px;
}

h1:first-child::after {
    right: 20px;
}

/* Paragrafy - pseudo-cytaty */
p {
    max-width: 800px;
    margin: 0 auto 20px;
    line-height: 1.8;
    font-size: 1.15rem;
    text-align: center;
    color: #d4c5a0;
    padding: 15px 30px;
    border-left: 3px solid rgba(255, 215, 0, 0.3);
    border-right: 3px solid rgba(255, 215, 0, 0.3);
    background: rgba(0, 0, 0, 0.2);
    font-style: italic;
}

/* Sekcje nagłówków */
h1:not(:first-child) {
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 2rem;
    text-align: center;
    color: #e8c547;
    margin: 50px auto 30px;
    padding: 15px 30px;
    max-width: 600px;
    background: linear-gradient(135deg, rgba(139, 90, 43, 0.2) 0%, rgba(0, 0, 0, 0.3) 100%);
    border-bottom: 2px solid #b8860b;
    border-top: 2px solid #b8860b;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* Dekoracje przy nagłówkach sekcji */
h1:not(:first-child)::before {
    content: '✠';
    display: block;
    font-size: 1.5rem;
    color: #b8860b;
    margin-bottom: 10px;
    opacity: 0.6;
}

/* Listy */
ul {
    list-style: none;
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Elementy listy - pseudo-obrazy wotywne */
li {
    background: linear-gradient(135deg, rgba(50, 30, 80, 0.4) 0%, rgba(30, 15, 50, 0.6) 100%);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 12px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 215, 0, 0.1);
}

/* Nazwy nagłówków w li */
h2 {
    font-family: 'Crimson T[118;1:3uext', Georgia, serif;
    font-size: 1.4rem;
    color: #ffd700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* Wideo - brak efektu przyciemnienia po najechaniu */
video {
    width: 100%;
    max-width: 800px;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    border: 2px solid rgba(255, 215, 0, 0.2);
    background: #000;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    /* Zapobiega domyślnemu przyciemnianiu przez przeglądarkę */
    -webkit-filter: brightness(1);
    filter: brightness(1);
    transition: none;
}

/* Utrzymuje jasność po najechaniu */
video:hover {
    -webkit-filter: brightness(1) !important;
    filter: brightness(1) !important;
}

/* Audio */
audio {
    width: 100%;
    max-width: 500px;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    background: rgba(255, 215, 0, 0.05);
}

/* Stylizacja elementów sterujących (dla przeglądarek obsługujących) */
video::-webkit-media-controls-panel,
audio::-webkit-media-controls-panel {
    background: rgba(26, 10, 46, 0.8);
}

video::-webkit-media-controls-current-time-display,
audio::-webkit-media-controls-current-time-display,
video::-webkit-media-controls-time-remaining-display,
audio::-webkit-media-controls-time-remaining-display {
    color: #ffd700;
}

video::-webkit-media-controls-play-button,
audio::-webkit-media-controls-play-button {
    background-color: rgba(255, 215, 0, 0.2);
    border-radius: 50%;
}

/* Responsywność */
@media (max-width: 768px) {
    body {
        padding: 20px 10px;
    }

    h1:first-child {
        font-size: 2rem;
        padding: 20px 10px;
    }

    h1:first-child::before,
    h1:first-child::after {
        display: none;
    }

    h1:not(:first-child) {
        font-size: 1.5rem;
        padding: 10px 20px;
    }

    p {
        font-size: 1rem;
        padding: 10px 15px;
    }

    video {
        border-radius: 6px;
    }

    audio {
        max-width: 100%;
    }
}

/* Drobne dekoracje - pseudo-złocenia */
li::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3), transparent);
}

/* Styl dla przewijania - pseudo-witrażowy pasek */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1a0a2e;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #b8860b, #ffd700);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ffd700, #b8860b);
}
