@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Trajan+Pro:wght@400;700&family=Optima:wght@400;600&display=swap');

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

body {
    font-family: 'Optima', 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 50%, #0a0a0a 100%);
    color: #c4b896;
    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 30% 30%, rgba(196, 184, 150, 0.08) 0%, transparent 30%),
        radial-gradient(circle at 70% 70%, rgba(139, 139, 139, 0.05) 0%, transparent 25%);
    pointer-events: none;
    z-index: 1;
}

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

/* Header Styles */
.tablet-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(135deg, rgba(42, 42, 42, 0.95), rgba(26, 26, 26, 0.95));
    backdrop-filter: blur(15px);
    border-bottom: 4px solid #8b8b8b;
    padding: 1.5rem 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

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

.temple-navigation {
    display: flex;
    gap: 2rem;
}

.nav-rune {
    color: #c4b896;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    border: 3px solid transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(139, 139, 139, 0.1);
}

.nav-rune:hover {
    color: #fff;
    border-color: #8b8b8b;
    background: rgba(196, 184, 150, 0.2);
    box-shadow: 0 0 20px rgba(139, 139, 139, 0.3);
    transform: translateY(-2px);
}

.tablet-title {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.title-chisel {
    font-size: 2rem;
    color: #8b8b8b;
    animation: chiselHammer 3s ease-in-out infinite;
}

@keyframes chiselHammer {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-10deg) scale(1.1); }
    75% { transform: rotate(10deg) scale(0.9); }
}

.tablet-title h1 {
    font-family: 'Trajan Pro', 'Cinzel', serif;
    font-size: 2.5rem;
    color: #c4b896;
    font-weight: 700;
    text-shadow:
        3px 3px 0px rgba(139, 139, 139, 0.5),
        -1px -1px 0px rgba(0, 0, 0, 0.8);
    letter-spacing: 3px;
}

/* Main Content */
.stone-slab {
    padding: 4rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}

.tablet-surface {
    position: relative;
    background: linear-gradient(135deg, #e8e8e8 0%, #d0d0d0 50%, #b8b8b8 100%);
    border-radius: 25px;
    padding: 4rem;
    box-shadow:
        0 0 80px rgba(0, 0, 0, 0.4),
        inset 0 0 80px rgba(139, 139, 139, 0.1),
        inset 0 10px 20px rgba(255, 255, 255, 0.2);
    border: 8px solid #8b8b8b;
    overflow: hidden;
    position: relative;
}

.tablet-surface::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 15px,
            rgba(139, 139, 139, 0.02) 16px,
            rgba(139, 139, 139, 0.02) 17px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 20px,
            rgba(0, 0, 0, 0.02) 21px,
            rgba(0, 0, 0, 0.02) 22px
        );
    pointer-events: none;
}

.carved-border {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 5px solid #8b8b8b;
    border-radius: 20px;
    pointer-events: none;
}

.corner-chi {
    position: absolute;
    font-size: 2rem;
    color: #8b8b8b;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.top-left {
    top: -20px;
    left: -20px;
}

.top-right {
    top: -20px;
    right: -20px;
}

.bottom-left {
    bottom: -20px;
    left: -20px;
}

.bottom-right {
    bottom: -20px;
    right: -20px;
}

.law-inscriptions {
    position: relative;
    z-index: 2;
    color: #2a2a2a;
}

.tablet-seal {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.seal-hammer {
    font-size: 3rem;
    position: relative;
    z-index: 3;
    animation: sealPulse 4s ease-in-out infinite;
}

@keyframes sealPulse {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.1); filter: brightness(1.2); }
}

.seal-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
}

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

.layer-1 {
    width: 120px;
    height: 120px;
    border-color: rgba(139, 139, 139, 0.3);
    animation-direction: normal;
}

.layer-2 {
    width: 90px;
    height: 90px;
    top: 15px;
    left: 15px;
    border-color: rgba(196, 184, 150, 0.4);
    animation-duration: 20s;
    animation-direction: reverse;
}

.layer-3 {
    width: 60px;
    height: 60px;
    top: 30px;
    left: 30px;
    border-color: rgba(139, 139, 139, 0.5);
    animation-duration: 15s;
}

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

.law-header {
    font-family: 'Trajan Pro', 'Cinzel', serif;
    font-size: 3.2rem;
    text-align: center;
    color: #2a2a2a;
    margin-bottom: 1rem;
    text-shadow:
        3px 3px 0px rgba(139, 139, 139, 0.3),
        -1px -1px 0px rgba(196, 184, 150, 0.2);
    line-height: 1.2;
    letter-spacing: 2px;
}

.engraved-date {
    text-align: center;
    font-style: italic;
    color: #666;
    margin-bottom: 3rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.law-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 3rem 0;
    gap: 2rem;
}

.separator-line {
    flex: 1;
    height: 4px;
    background: linear-gradient(90deg, transparent, #8b8b8b, transparent);
    border-radius: 2px;
}

.hammer-symbol {
    color: #8b8b8b;
    font-size: 2rem;
    font-weight: bold;
    animation: hammerStrike 2s ease-in-out infinite;
}

@keyframes hammerStrike {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(15deg); }
}

/* Text Styles */
.temple-codex {
    line-height: 1.7;
    font-size: 1.1rem;
}

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

.law-article {
    margin-bottom: 3rem;
    break-inside: avoid;
}

.article-title {
    font-family: 'Trajan Pro', 'Cinzel', serif;
    font-size: 2rem;
    color: #2a2a2a;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-bottom: 3px solid #8b8b8b;
    padding-bottom: 1rem;
}

.article-number {
    background: linear-gradient(45deg, #8b8b8b, #c4b896);
    color: white;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    font-size: 1.4rem;
    font-weight: bold;
    flex-shrink: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.carved-text {
    margin-bottom: 2rem;
    position: relative;
    text-align: justify;
    font-size: 1.15rem;
    line-height: 1.8;
}

.initial-letter {
    float: left;
    font-family: 'Trajan Pro', 'Cinzel', serif;
    font-size: 5rem;
    line-height: 4rem;
    padding-right: 12px;
    margin-top: 8px;
    color: #8b8b8b;
    text-shadow: 3px 3px 0px rgba(42, 42, 42, 0.3);
    font-weight: bold;
}

.law-text {
    margin-bottom: 1.5rem;
    text-align: justify;
    color: #2a2a2a;
    font-size: 1.05rem;
    line-height: 1.7;
}

.commandments-tablet {
    background: rgba(139, 139, 139, 0.1);
    border: 4px solid #8b8b8b;
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    position: relative;
}

.commandments-tablet::before {
    content: '⚖️';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: #e8e8e8;
    padding: 0 1rem;
    font-size: 2rem;
}

.commandment {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 10px;
    border-left: 5px solid #8b8b8b;
}

.commandment-number {
    background: linear-gradient(45deg, #8b8b8b, #c4b896);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.commandment-text {
    color: #2a2a2a;
    font-weight: 600;
    line-height: 1.5;
}

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

.forbidden-item {
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.1), rgba(139, 0, 0, 0.1));
    border: 3px solid #dc143c;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.forbidden-item:hover {
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.2), rgba(139, 0, 0, 0.2));
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(220, 20, 60, 0.2);
}

.forbidden-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.forbidden-desc {
    color: #2a2a2a;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
}

.age-proclamation {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: rgba(255, 215, 0, 0.1);
    border: 3px solid #ffd700;
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
}

.age-seal {
    font-size: 3rem;
    font-weight: bold;
    color: #ffd700;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.05));
    border: 3px solid #ffd700;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.age-text {
    flex: 1;
}

.protection-seal {
    text-align: center;
    background: rgba(139, 139, 139, 0.1);
    border: 3px solid #8b8b8b;
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
}

.seal-elements {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.element {
    font-size: 3rem;
    color: #8b8b8b;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: elementGlow 3s ease-in-out infinite;
}

.element:nth-child(2) { animation-delay: 1s; }
.element:nth-child(3) { animation-delay: 2s; }

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

.protection-text {
    color: #2a2a2a;
    font-weight: 600;
    font-style: italic;
}

.disclaimer-scroll {
    background: rgba(139, 139, 139, 0.1);
    border: 3px solid #8b8b8b;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.disclaimer-list {
    margin-left: 2rem;
    color: #2a2a2a;
}

.disclaimer-list li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.arbitration-chamber {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: rgba(139, 139, 139, 0.1);
    border: 3px solid #8b8b8b;
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
}

.chamber-icon {
    font-size: 3rem;
    color: #8b8b8b;
}

.chamber-text h4 {
    color: #2a2a2a;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.chamber-text p {
    color: #555;
    font-style: italic;
}

.contact-oracle-section {
    border-top: 5px solid #8b8b8b;
    padding-top: 2rem;
    margin-top: 3rem;
}

.oracle-chamber {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.1), rgba(139, 139, 139, 0.1));
    border: 3px solid #8a2be2;
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
}

.oracle-crystal {
    font-size: 4rem;
    animation: crystalGlow 4s ease-in-out infinite;
}

@keyframes crystalGlow {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.1) rotate(10deg);
        filter: brightness(1.3);
    }
}

.oracle-wisdom {
    flex: 1;
}

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

.contact-rune {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 10px;
}

.rune-symbol {
    font-size: 1.5rem;
    width: 30px;
    text-align: center;
}

/* Footer */
.tablet-footer {
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    color: #c4b896;
    padding: 3rem 2rem 2rem;
    text-align: center;
    border-top: 4px solid #8b8b8b;
    margin-top: 4rem;
}

.footer-inscription {
    max-width: 800px;
    margin: 0 auto;
}

.inscription-symbols {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
}

.symbol {
    font-size: 2.5rem;
    color: #8b8b8b;
    animation: symbolFloat 6s ease-in-out infinite;
}

.symbol:nth-child(2) { animation-delay: 2s; }
.symbol:nth-child(3) { animation-delay: 4s; }

@keyframes symbolFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.1); }
}

.footer-text {
    font-style: italic;
    margin-bottom: 2rem;
    color: #c4b896;
    font-size: 1.1rem;
    line-height: 1.6;
}

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

.footer-link {
    color: #c4b896;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    border: 2px solid transparent;
}

.footer-link:hover {
    color: #fff;
    background: rgba(139, 139, 139, 0.2);
    border-color: #8b8b8b;
    text-shadow: 0 0 10px rgba(196, 184, 150, 0.5);
}

.link-divider {
    color: #8b8b8b;
    font-size: 1.2rem;
}

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

.chisel-particle {
    position: absolute;
    color: rgba(139, 139, 139, 0.4);
    font-size: 2rem;
    animation: chiselFloat 20s linear infinite;
}

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

.chisel-particle:nth-child(2) {
    left: 35%;
    animation-delay: 5s;
}

.chisel-particle:nth-child(3) {
    left: 65%;
    animation-delay: 10s;
}

.chisel-particle:nth-child(4) {
    left: 85%;
    animation-delay: 15s;
}

@keyframes chiselFloat {
    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-stone {
        flex-direction: column;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .temple-navigation {
        gap: 1rem;
    }

    .tablet-surface {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }

    .law-header {
        font-size: 2.2rem;
    }

    .article-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .age-proclamation,
    .arbitration-chamber,
    .oracle-chamber {
        flex-direction: column;
        text-align: center;
    }

    .footer-navigation {
        flex-direction: column;
        gap: 1rem;
    }
}

.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;
}
