@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=UnifrakturMaguntia&family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&display=swap');

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

body {
    font-family: 'Cormorant Garamond', serif;
    background: linear-gradient(135deg, #2c1810 0%, #1a0f08 50%, #0f0804 100%);
    color: #8b7355;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(139, 115, 85, 0.1) 0%, transparent 25%),
        radial-gradient(circle at 75% 75%, rgba(160, 130, 90, 0.08) 0%, transparent 30%);
    pointer-events: none;
    z-index: 1;
}

.scroll-chamber {
    position: relative;
    z-index: 2;
    min-height: 100vh;
}

/* Header Styles */
.scroll-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(135deg, rgba(44, 24, 16, 0.95), rgba(26, 15, 8, 0.95));
    backdrop-filter: blur(10px);
    border-bottom: 3px solid #8b7355;
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.header-papyrus {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.return-portal {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #a0825a;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border: 2px solid transparent;
    border-radius: 5px;
}

.return-portal:hover {
    color: #d4af37;
    border-color: #8b7355;
    background: rgba(139, 115, 85, 0.1);
    transform: translateX(-5px);
}

.portal-symbol {
    font-size: 1.5rem;
    font-weight: bold;
    animation: portalPulse 2s ease-in-out infinite;
}

@keyframes portalPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.scroll-emblem {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.emblem-rings {
    position: relative;
    width: 50px;
    height: 50px;
}

.ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid;
    animation: ringRotate 20s linear infinite;
}

.outer-ring {
    width: 50px;
    height: 50px;
    border-color: #8b7355;
    animation-direction: normal;
}

.middle-ring {
    width: 35px;
    height: 35px;
    top: 7.5px;
    left: 7.5px;
    border-color: #a0825a;
    animation-duration: 15s;
    animation-direction: reverse;
}

.inner-ring {
    width: 20px;
    height: 20px;
    top: 15px;
    left: 15px;
    border-color: #d4af37;
    animation-duration: 10s;
}

@keyframes ringRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.emblem-text {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: #d4af37;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

/* Main Content */
.manuscript-body {
    padding: 3rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.parchment-container {
    position: relative;
    background: linear-gradient(135deg, #f4e9d9 0%, #e6d3b8 50%, #d4c29a 100%);
    border-radius: 20px;
    padding: 3rem;
    box-shadow:
        0 0 50px rgba(0, 0, 0, 0.3),
        inset 0 0 50px rgba(139, 115, 85, 0.1);
    border: 5px solid #8b7355;
    overflow: hidden;
}

.parchment-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 20px,
            rgba(139, 115, 85, 0.03) 21px,
            rgba(139, 115, 85, 0.03) 22px
        );
    pointer-events: none;
}

.illuminated-border {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 3px solid #8b7355;
    border-radius: 15px;
    pointer-events: none;
}

.corner-ornament {
    position: absolute;
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, #d4af37, #8b7355);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.top-left {
    top: -15px;
    left: -15px;
    transform: rotate(-45deg);
}

.top-right {
    top: -15px;
    right: -15px;
    transform: rotate(45deg);
}

.bottom-left {
    bottom: -15px;
    left: -15px;
    transform: rotate(-135deg);
}

.bottom-right {
    bottom: -15px;
    right: -15px;
    transform: rotate(135deg);
}

.scroll-content {
    position: relative;
    z-index: 2;
    color: #2c1810;
}

.ancient-seal {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.seal-rays {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    transform: translate(-50%, -50%);
    background: conic-gradient(from 0deg, transparent, rgba(212, 175, 55, 0.3), transparent, rgba(212, 175, 55, 0.3), transparent);
    border-radius: 50%;
    animation: rayRotate 8s linear infinite;
}

@keyframes rayRotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.seal-center {
    position: relative;
    z-index: 3;
    width: 50px;
    height: 50px;
    margin: 0 auto;
    background: radial-gradient(circle, #d4af37, #8b7355);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #2c1810;
}

.hieroglyph {
    font-size: 1.5rem;
    color: #2c1810;
    font-weight: bold;
}

.manuscript-title {
    font-family: 'UnifrakturMaguntia', cursive;
    font-size: 2.8rem;
    text-align: center;
    color: #2c1810;
    margin-bottom: 0.5rem;
    text-shadow:
        2px 2px 0px rgba(212, 175, 55, 0.3),
        -1px -1px 0px rgba(139, 115, 85, 0.2);
    line-height: 1.2;
}

.date-inscription {
    text-align: center;
    font-style: italic;
    color: #8b7355;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.verse-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
    gap: 1rem;
}

.divider-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, #8b7355, transparent);
}

.ancient-symbol {
    color: #d4af37;
    font-size: 1.2rem;
    font-weight: bold;
}

/* Text Styles */
.sacred-text {
    line-height: 1.8;
    font-size: 1.1rem;
}

.text-column {
    column-count: 1;
    column-gap: 3rem;
}

.chapter-heading {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: #2c1810;
    margin: 2rem 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 2px solid #8b7355;
    padding-bottom: 0.5rem;
}

.chapter-marker {
    background: linear-gradient(45deg, #d4af37, #8b7355);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    flex-shrink: 0;
}

.illuminated-paragraph {
    margin-bottom: 1.5rem;
    position: relative;
    text-align: justify;
    text-indent: 0;
}

.drop-cap {
    float: left;
    font-family: 'UnifrakturMaguntia', cursive;
    font-size: 4rem;
    line-height: 3rem;
    padding-right: 8px;
    margin-top: 4px;
    color: #d4af37;
    text-shadow: 2px 2px 0px rgba(44, 24, 16, 0.3);
}

.temple-text {
    margin-bottom: 1.5rem;
    text-align: justify;
    color: #2c1810;
}

.mystic-list {
    margin: 1.5rem 0;
    background: rgba(139, 115, 85, 0.1);
    border-left: 5px solid #8b7355;
    padding: 1.5rem;
    border-radius: 0 10px 10px 0;
}

.list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
}

.rune {
    color: #d4af37;
    font-size: 1.3rem;
    font-weight: bold;
    width: 20px;
    text-align: center;
}

.item-text {
    color: #2c1810;
    font-weight: 500;
}

.protection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.protection-item {
    text-align: center;
    background: rgba(212, 175, 55, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid #8b7355;
    transition: all 0.3s ease;
}

.protection-item:hover {
    background: rgba(212, 175, 55, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.protection-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.protection-name {
    font-weight: 600;
    color: #2c1810;
}

.rights-scroll {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.rights-item {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(139, 115, 85, 0.1));
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid #8b7355;
    position: relative;
    overflow: hidden;
}

.rights-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, #d4af37, #8b7355);
}

.rights-item h3 {
    font-family: 'Cinzel', serif;
    color: #2c1810;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.rights-item p {
    color: #5a4a3a;
    font-size: 0.95rem;
    line-height: 1.4;
}

.contact-shrine {
    background: linear-gradient(135deg, rgba(139, 115, 85, 0.1), rgba(212, 175, 55, 0.1));
    border: 3px solid #8b7355;
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    position: relative;
}

.contact-shrine::before {
    content: '🏛️';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #f4e9d9;
    padding: 0 1rem;
    font-size: 1.5rem;
}

.oracle-contact {
    margin-top: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
}

.contact-symbol {
    font-size: 1.2rem;
    width: 25px;
    text-align: center;
}

/* Footer */
.scroll-footer {
    background: linear-gradient(135deg, #2c1810, #1a0f08);
    color: #8b7355;
    padding: 3rem 2rem 2rem;
    text-align: center;
    border-top: 3px solid #8b7355;
    margin-top: 3rem;
}

.footer-seal {
    margin-bottom: 2rem;
}

.seal-outer {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    border: 3px solid #8b7355;
    border-radius: 50%;
    padding: 5px;
    animation: sealRotate 30s linear infinite;
}

.seal-middle {
    width: 100%;
    height: 100%;
    border: 2px solid #a0825a;
    border-radius: 50%;
    padding: 5px;
}

.seal-inner {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #d4af37, #8b7355);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.seal-letter {
    font-family: 'UnifrakturMaguntia', cursive;
    font-size: 1.5rem;
    color: #2c1810;
    font-weight: bold;
}

@keyframes sealRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.footer-inscription p {
    font-style: italic;
    margin-bottom: 1rem;
    color: #a0825a;
    font-size: 1.1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #d4af37;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.footer-links a:hover {
    color: #f4e9d9;
    background: rgba(139, 115, 85, 0.2);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.separator {
    color: #8b7355;
}

/* Floating Runes */
.floating-runes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.rune-particle {
    position: absolute;
    color: rgba(212, 175, 55, 0.3);
    font-size: 1.5rem;
    animation: runeFloat 15s linear infinite;
}

.rune-particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
}

.rune-particle:nth-child(2) {
    left: 30%;
    animation-delay: 3s;
}

.rune-particle:nth-child(3) {
    left: 60%;
    animation-delay: 6s;
}

.rune-particle:nth-child(4) {
    left: 80%;
    animation-delay: 9s;
}

@keyframes runeFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-10vh) rotate(360deg);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-papyrus {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }

    .parchment-container {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }

    .manuscript-title {
        font-size: 2rem;
    }

    .text-column {
        column-count: 1;
    }

    .protection-grid,
    .rights-scroll {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}

.age-disclaimer {
    color: #ff6b6b;
    font-size: 1rem;
    font-weight: 600;
    margin: 1rem auto;
    text-align: center;
    padding: 0.8rem;
    background: rgba(255, 107, 107, 0.1);
    border: 2px solid rgba(255, 107, 107, 0.3);
    border-radius: 8px;
    max-width: 600px;
}
