/* Dokoddo - Traditional Japanese Inspired Styling */

.dokoddo-container {
    max-width: 900px;
    margin: 3rem auto;
    padding: 3rem 2rem;
    background: linear-gradient(to bottom,
        rgba(250, 248, 240, 0.95),
        rgba(245, 240, 230, 0.95));
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

/* Subtle Japanese paper texture background */
.dokoddo-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.01) 2px,
            rgba(0, 0, 0, 0.01) 4px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.01) 2px,
            rgba(0, 0, 0, 0.01) 4px
        );
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

.dokoddo-container > * {
    position: relative;
    z-index: 1;
}

.dokoddo-container h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    text-align: center;
    letter-spacing: 0.05em;
    font-family: Georgia, 'Times New Roman', serif;
}

.dokoddo-container h3 {
    font-size: 1.5rem;
    font-weight: 400;
    color: #8B4513;
    margin-bottom: 2.5rem;
    text-align: center;
    font-style: italic;
    letter-spacing: 0.02em;
}

.dokoddo-container h3.wp-block-heading {
    margin-top: 3rem;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: #5a5a5a;
}

/* Red accent line - traditional Japanese color */
.dokoddo-container h1::after {
    content: '';
    display: block;
    width: 120px;
    height: 3px;
    background: linear-gradient(to right, transparent, #8B0000, transparent);
    margin: 1rem auto 0;
}

.precepts-list {
    list-style: none;
    counter-reset: precept-counter;
    padding: 0;
    margin: 2rem 0;
}

.precepts-list li {
    counter-increment: precept-counter;
    position: relative;
    background: rgba(255, 255, 255, 0.7);
    border-left: 4px solid #8B0000;
    border-radius: 2px;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #2c2c2c;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.precepts-list li:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(8px);
    box-shadow: 0 4px 16px rgba(139, 0, 0, 0.15);
}

/* Custom Japanese-inspired numbering */
.precepts-list li::before {
    content: counter(precept-counter);
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, #8B0000, #A52A2A);
    color: #FAF8F0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(139, 0, 0, 0.3);
    border: 2px solid #FAF8F0;
}

/* Responsive design */
@media (max-width: 768px) {
    .dokoddo-container {
        margin: 1.5rem 1rem;
        padding: 2rem 1.5rem;
    }

    .dokoddo-container h1 {
        font-size: 2.5rem;
    }

    .dokoddo-container h3 {
        font-size: 1.2rem;
    }

    .precepts-list li {
        padding: 1.25rem 1rem 1.25rem 4.5rem;
        font-size: 1rem;
    }

    .precepts-list li::before {
        left: 1rem;
        width: 2rem;
        height: 2rem;
        font-size: 0.9rem;
    }
}

/* Print styles */
@media print {
    .dokoddo-container {
        box-shadow: none;
        background: white;
    }

    .precepts-list li {
        page-break-inside: avoid;
    }
}
