/**
 * Custom Styles for LMS Diaco Template
 * Additional styling for enhanced appearance
 */

/* Homepage Hero Section */
.homepage-hero {
    text-align: center;
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    margin: 2rem auto;
    max-width: 1200px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
    font-weight: bold;
}

.homepage-subtitle {
    font-size: 1.5rem;
    opacity: 0.95;
    margin-bottom: 2rem;
}

.btn-hero {
    font-size: 1.1rem;
    padding: 15px 40px;
    margin-top: 1rem;
}

/* Features Section */
.features-section {
    padding: 4rem 0;
    background: #f8f9fa;
    margin: 3rem 0;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-top: 4px solid #667eea;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.feature-icon svg {
    width: 40px;
    height: 40px;
}

.feature-card h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #7f8c8d;
    line-height: 1.8;
    margin: 0;
}

/* Latest Posts Section */
.latest-posts-section {
    padding: 4rem 0;
    margin: 3rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.post-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.post-card .post-thumbnail {
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    height: 200px;
}

.post-card .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.1);
}

.post-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-card .post-title {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.post-card .post-title a {
    color: #2c3e50;
    transition: color 0.3s ease;
}

.post-card .post-title a:hover {
    color: #667eea;
}

.post-card .post-meta {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.post-card .post-excerpt {
    flex-grow: 1;
    margin-bottom: 1rem;
    color: #555;
    line-height: 1.7;
}

.btn-read-more {
    color: #667eea;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
    align-self: flex-start;
}

.btn-read-more:hover {
    color: #764ba2;
    transform: translateX(-5px);
}

.view-all-posts {
    text-align: center;
    margin-top: 2rem;
}

/* Post Thumbnail */
.post-thumbnail,
.page-thumbnail {
    margin-bottom: 1.5rem;
    overflow: hidden;
    border-radius: 8px;
}

.post-image,
.page-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.post-thumbnail:hover .post-image,
.page-thumbnail:hover .page-image {
    transform: scale(1.05);
}

/* Post Meta Icons */
.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    margin-bottom: 1rem;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-meta i {
    font-style: normal;
}

.icon-calendar::before { content: "📅"; }
.icon-user::before { content: "👤"; }
.icon-folder::before { content: "📁"; }
.icon-tag::before { content: "🏷️"; }

/* Entry Content Styling */
.entry-content {
    line-height: 1.8;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content ul,
.entry-content ol {
    margin: 1.5rem 0;
    padding-right: 2rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

.entry-content blockquote {
    border-right: 4px solid #667eea;
    padding-right: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #555;
}

.entry-content code {
    background-color: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.entry-content pre {
    background-color: #f4f4f4;
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.entry-content pre code {
    background: none;
    padding: 0;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.entry-content table th,
.entry-content table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: right;
}

.entry-content table th {
    background-color: #667eea;
    color: white;
    font-weight: bold;
}

/* Pagination */
.pagination {
    margin-top: 3rem;
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    padding: 10px 15px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    color: #667eea;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Post Navigation */
.post-navigation {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    flex: 1;
}

.post-navigation a {
    display: block;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.post-navigation a:hover {
    background: #667eea;
    color: white;
}

/* Comments */
.comments-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.comment-list {
    list-style: none;
    margin: 2rem 0;
}

.comment {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.comment-author {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.comment-meta {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.comment-content {
    line-height: 1.6;
}

/* Footer Widgets */
.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-widget {
    color: rgba(255, 255, 255, 0.8);
}

.footer-widget-title {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer-widget a:hover {
    color: white;
}

/* Footer Contact Info */
.footer-info {
    margin: 2rem 0;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

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

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.footer-icon {
    font-size: 1.2rem;
}

.footer-contact-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-item a:hover {
    color: white;
}

.site-info {
    text-align: center;
    padding-top: 1.5rem;
}

.copyright {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin: 0;
}

.copyright a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.copyright a:hover {
    color: white;
    text-decoration: underline;
}

/* Site Description */
.site-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 5px;
}

/* No Posts */
.no-posts {
    text-align: center;
    padding: 3rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.no-posts h2 {
    color: #7f8c8d;
    margin-bottom: 1rem;
}

/* Page Links */
.page-links {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.page-links a {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 5px;
    background: #f8f9fa;
    border-radius: 3px;
}

.page-links a:hover {
    background: #667eea;
    color: white;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .homepage-hero {
        padding: 3rem 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .homepage-subtitle {
        font-size: 1.2rem;
    }
    
    .features-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .post-navigation .nav-links {
        flex-direction: column;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
    }
    
    .footer-contact {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-contact-item {
        justify-content: center;
    }
}

/* LMS Plugin Compatibility */
.lms-class-card,
.lms-assignment-card,
.lms-exam-card {
    border-right: 4px solid #667eea;
}

.lms-class-card h3,
.lms-assignment-card h3,
.lms-exam-card h3 {
    color: #667eea;
    margin-bottom: 1rem;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post,
.page {
    animation: fadeIn 0.5s ease-in;
}

