/* Old Fashion Book Page Styles */
.old-book-page {
    background: linear-gradient(145deg, #f4f1e8, #ede8d3);
    position: relative;
    padding: 60px 50px;
    margin: 40px auto;
    max-width: 900px;
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.1),
        inset 0 0 0 1px rgba(139,69,19,0.1),
        inset 0 0 40px rgba(139,69,19,0.05);
    border-radius: 8px;
    font-family: 'Georgia', 'Times New Roman', serif;
    color: #2d2d2d;
    line-height: 1.8;
}

.old-book-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 24px,
            rgba(139,69,19,0.03) 25px
        ),
        radial-gradient(circle at 20% 20%, rgba(139,69,19,0.03) 1px, transparent 1px),
        radial-gradient(circle at 80% 80%, rgba(139,69,19,0.03) 1px, transparent 1px);
    pointer-events: none;
    border-radius: 8px;
}

.book-title {
    font-family: 'Georgia', serif;
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    color: #8B4513;
    margin-bottom: 30px;
    position: relative;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    letter-spacing: 2px;
}

.book-title::before,
.book-title::after {
    content: '❦';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #D2691E;
    opacity: 0.7;
}

.book-title::before {
    left: -40px;
}

.book-title::after {
    right: -40px;
}

.ornamental-divider {
    width: 200px;
    height: 2px;
    background: linear-gradient(to right, transparent, #8B4513, transparent);
    margin: 20px auto 40px;
    position: relative;
}

.ornamental-divider::before {
    content: '✦';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #f4f1e8;
    color: #8B4513;
    padding: 0 10px;
    font-size: 14px;
}

.drop-cap {
    float: left;
    font-size: 4rem;
    line-height: 3rem;
    padding: 0 8px 0 0;
    margin: 0 8px 0 0;
    font-family: 'Georgia', serif;
    font-weight: bold;
    color: #8B4513;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    background: linear-gradient(135deg, #D2691E, #8B4513);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.book-text {
    font-family: 'Georgia', serif;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: justify;
    color: #3a3a3a;
    text-indent: 2rem;
    hyphens: auto;
}

.book-text:first-letter {
    font-size: 1.2rem;
    font-weight: 500;
}

.book-quote {
    font-style: italic;
    text-align: center;
    font-size: 1.2rem;
    color: #8B4513;
    margin: 2rem 0;
    padding: 1rem 2rem;
    border-left: 3px solid #D2691E;
    border-right: 3px solid #D2691E;
    background: rgba(210, 105, 30, 0.05);
    position: relative;
    text-indent: 0;
}

.book-quote::before,
.book-quote::after {
    content: '"';
    font-size: 2rem;
    color: #D2691E;
    font-family: 'Georgia', serif;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.book-quote::before {
    left: 10px;
}

.book-quote::after {
    right: 10px;
}

.book-signature {
    text-align: right;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(139,69,19,0.3);
    font-style: italic;
    color: #8B4513;
}

.book-signature .signature-text {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.book-signature .signature-name {
    font-size: 1.1rem;
    font-weight: bold;
    margin-top: 1rem;
}

.page-number {
    position: absolute;
    bottom: 20px;
    right: 30px;
    font-size: 0.9rem;
    color: #8B4513;
    font-style: italic;
}

/* Vintage paper texture effect */
.old-book-page::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(139,69,19,0.02) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(139,69,19,0.02) 1px, transparent 1px),
        radial-gradient(circle at 50% 50%, rgba(139,69,19,0.01) 1px, transparent 1px);
    background-size: 20px 20px, 30px 30px, 15px 15px;
    pointer-events: none;
    border-radius: 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .old-book-page {
        padding: 40px 30px;
        margin: 20px;
    }
    
    .book-title {
        font-size: 2rem;
    }
    
    .book-title::before,
    .book-title::after {
        display: none;
    }
    
    .drop-cap {
        font-size: 3rem;
        line-height: 2.5rem;
    }
    
    .book-text {
        font-size: 1rem;
        text-indent: 1.5rem;
    }
}

/* Hover effect for the entire page */
.old-book-page:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 25px 50px rgba(0,0,0,0.15),
        inset 0 0 0 1px rgba(139,69,19,0.15),
        inset 0 0 40px rgba(139,69,19,0.08);
    transition: all 0.3s ease;
}
