/**
 * CadceedOnline Blog Fixes - Custom Styles
 * Version: 1.0.0
 */

/* ===================================
   Reading Time Badge
   =================================== */
.cadceed-reading-time {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.cadceed-reading-time .reading-icon {
    margin-right: 5px;
}

/* ===================================
   Blog Post Cards - Better Spacing
   =================================== */
.blog .entry-content,
.archive .entry-content {
    margin-bottom: 20px;
}

.blog .ast-post-format-standard,
.archive .ast-post-format-standard {
    margin-bottom: 40px;
    padding: 25px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog .ast-post-format-standard:hover,
.archive .ast-post-format-standard:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

/* ===================================
   Post Titles
   =================================== */
.entry-title {
    font-size: 28px !important;
    line-height: 1.4 !important;
    margin-bottom: 15px !important;
    font-weight: 700 !important;
}

.entry-title a {
    color: #2c3e50 !important;
    text-decoration: none !important;
}

.entry-title a:hover {
    color: #667eea !important;
}

/* ===================================
   Post Meta (Date, Author, etc)
   =================================== */
.ast-blog-meta-container {
    margin-bottom: 15px;
    font-size: 14px;
    color: #7f8c8d;
}

.ast-blog-meta-container a {
    color: #667eea;
    text-decoration: none;
}

/* ===================================
   Excerpts - Better Readability
   =================================== */
.ast-excerpt-container {
    font-size: 16px;
    line-height: 1.8;
    color: #555555;
    margin-bottom: 20px;
}

/* ===================================
   Read More Button
   =================================== */
.ast-read-more-container a {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff !important;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.ast-read-more-container a:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* ===================================
   Featured Images
   =================================== */
.blog .post-thumb img,
.archive .post-thumb img {
    border-radius: 8px;
    margin-bottom: 20px;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.blog .post-thumb:hover img,
.archive .post-thumb:hover img {
    transform: scale(1.02);
}

/* ===================================
   Pagination
   =================================== */
.ast-pagination {
    margin-top: 50px;
    text-align: center;
}

.ast-pagination .page-numbers {
    display: inline-block;
    padding: 10px 16px;
    margin: 0 5px;
    background: #f8f9fa;
    color: #2c3e50;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.ast-pagination .page-numbers:hover,
.ast-pagination .page-numbers.current {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

/* ===================================
   Sidebar Widgets (if added)
   =================================== */
.widget {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.widget-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #2c3e50;
    border-bottom: 3px solid #667eea;
    padding-bottom: 10px;
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    padding: 10px 0;
    border-bottom: 1px solid #ecf0f1;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: #555555;
    text-decoration: none;
    transition: color 0.3s ease;
}

.widget ul li a:hover {
    color: #667eea;
}

/* ===================================
   Search Widget
   =================================== */
.widget_search input[type="search"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #ecf0f1;
    border-radius: 6px;
    font-size: 14px;
}

.widget_search input[type="submit"] {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.widget_search input[type="submit"]:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* ===================================
   Mobile Responsive
   =================================== */
@media (max-width: 768px) {
    .entry-title {
        font-size: 22px !important;
    }
    
    .blog .ast-post-format-standard,
    .archive .ast-post-format-standard {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .cadceed-reading-time {
        font-size: 13px;
        padding: 6px 12px;
    }
}

/* ===================================
   No Posts Found Message
   =================================== */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.no-results h1 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 15px;
}

.no-results p {
    font-size: 16px;
    color: #7f8c8d;
}

/* ===================================
   Category & Tag Badges
   =================================== */
.cat-links a,
.tags-links a {
    display: inline-block;
    background: #ecf0f1;
    color: #555555;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 13px;
    margin-right: 8px;
    margin-bottom: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cat-links a:hover,
.tags-links a:hover {
    background: #667eea;
    color: #ffffff;
}

/* ===================================
   Single Post Improvements
   =================================== */
.single .entry-content {
    font-size: 17px;
    line-height: 1.8;
    color: #444444;
}

.single .entry-content h2,
.single .entry-content h3 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: #2c3e50;
}

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

.single .entry-content img {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 30px 0;
}

/* ===================================
   Social Share Buttons (if you add them)
   =================================== */
.social-share-buttons {
    display: flex;
    gap: 10px;
    margin: 30px 0;
}

.social-share-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ecf0f1;
    color: #555555;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-share-buttons a:hover {
    background: #667eea;
    color: #ffffff;
    transform: translateY(-3px);
}
