/**
 * Single Page Styles
 *
 * Minimal and modern styling for single pages
 *
 * @package Nila
 * @since 1.0.0
 */

/* ============================================
   Main Container
   ============================================ */
.page .container {
    padding: 40px 15px;
}

.page .row {
    margin: 0;
}

.page article {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    overflow: visible;
}

/* ============================================
   Page Thumbnail
   ============================================ */
.page-thumbnail {
    margin-bottom: 40px;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    border: 1px solid #e5e5e5;
}

.page-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   Entry Header
   ============================================ */
.page .entry-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.page .entry-title {
    font-size: 42px;
    font-weight: 300;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

/* ============================================
   Entry Content
   ============================================ */
.page .entry-content {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

.page .entry-content p {
    margin-bottom: 20px;
}

.page .entry-content h2,
.page .entry-content h3,
.page .entry-content h4 {
    color: #1a1a1a;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 500;
}

.page .entry-content h2 {
    font-size: 32px;
    font-weight: 400;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 10px;
}

.page .entry-content h3 {
    font-size: 26px;
    font-weight: 400;
}

.page .entry-content h4 {
    font-size: 20px;
    font-weight: 500;
}

.page .entry-content ul,
.page .entry-content ol {
    margin: 20px 0;
    padding-right: 30px;
}

.page .entry-content li {
    margin-bottom: 10px;
}

.page .entry-content blockquote {
    border-right: 3px solid #e5e5e5;
    padding: 20px 25px;
    margin: 30px 0;
    background: #f8f9fa;
    border-radius: 0;
    font-style: italic;
    color: #555;
    font-size: 16px;
}

.page .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0;
    margin: 30px 0;
    border: 1px solid #e5e5e5;
}

.page .entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    border: 1px solid #e5e5e5;
    border-radius: 0;
    overflow: hidden;
}

.page .entry-content table th,
.page .entry-content table td {
    padding: 12px 15px;
    text-align: right;
    border-bottom: 1px solid #e5e5e5;
}

.page .entry-content table th {
    background: #f8f9fa;
    color: #1a1a1a;
    font-weight: 500;
}

.page .entry-content table tr:hover {
    background: #f8f9fa;
}

/* ============================================
   Page Links
   ============================================ */
.page .page-links {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
}

.page .page-links a,
.page .page-links .page-number {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 4px;
    background: #f8f9fa;
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
    border: 1px solid #e5e5e5;
    font-size: 14px;
}

.page .page-links a:hover {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

/* ============================================
   Edit Link
   ============================================ */
.page .edit-link {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

.page .edit-link a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f8f9fa;
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    transition: all 0.2s ease;
    border: 1px solid #e5e5e5;
}

.page .edit-link a:hover {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .page .container {
        padding: 20px 10px;
    }
    
    .page .entry-title {
        font-size: 32px;
    }
    
    .page .entry-content {
        font-size: 15px;
    }
    
    .page .entry-content h2 {
        font-size: 24px;
    }
    
    .page .entry-content h3 {
        font-size: 20px;
    }
    
    .page .entry-content h4 {
        font-size: 18px;
    }
    
    .page .entry-content blockquote {
        padding: 15px 20px;
        font-size: 15px;
    }
}

/* ============================================
   RTL Support
   ============================================ */
.rtl .page .entry-content ul,
.rtl .page .entry-content ol {
    padding-right: 0;
    padding-left: 30px;
}

.rtl .page .entry-content blockquote {
    border-right: none;
    border-left: 3px solid #e5e5e5;
}

.rtl .page .entry-content table th,
.rtl .page .entry-content table td {
    text-align: left;
}
