/* 
 * Muslimhub On This Day - Frontend Styles 
 * Inspired by OnThisDay.com layout
 */

.mhotd-events-container {
    max-width: 1000px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Header Section */
.mhotd-today-header {
    background: #065f46; /* Emerald Green */
    color: #fff;
    padding: 40px 20px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.mhotd-today-header h3 {
    margin: 0 0 15px;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.mhotd-dates {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 500;
}

.mhotd-gregorian {
    color: #fff;
}

.mhotd-hijri {
    color: #fbbf24; /* Amber/Gold */
    border-left: 2px solid rgba(255,255,255,0.3);
    padding-left: 10px;
}

/* Events List */
.mhotd-events-list {
    display: grid;
    gap: 25px;
}

.mhotd-event-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 25px;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.mhotd-event-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.mhotd-event-title {
    margin: 0 0 10px;
    font-size: 1.5rem;
}

.mhotd-event-title a {
    color: #065f46;
    text-decoration: none;
    font-weight: 700;
}

.mhotd-event-title a:hover {
    text-decoration: underline;
}

/* Meta Info */
.mhotd-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #6b7280;
}

.mhotd-year, .mhotd-category {
    background: #f3f4f6;
    padding: 4px 10px;
    border-radius: 4px;
}

.mhotd-year strong, .mhotd-category strong {
    color: #374151;
}

/* Excerpt & Read More */
.mhotd-event-excerpt {
    color: #4b5563;
    font-size: 1.05rem;
}

.mhotd-read-more {
    display: inline-block;
    margin-top: 10px;
    color: #065f46;
    font-weight: 600;
    text-decoration: none;
}

.mhotd-read-more:after {
    content: " →";
}

/* Empty State */
.mhotd-empty-state {
    text-align: center;
    padding: 50px;
    background: #f9fafb;
    border-radius: 8px;
    border: 2px dashed #d1d5db;
    color: #6b7280;
    font-style: italic;
}

/* Thumbnail */
.mhotd-event-thumbnail {
    margin-bottom: 15px;
}

.mhotd-event-thumbnail img {
    border-radius: 6px;
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
}

/* Responsive Adjustments */
@media (max-width: 640px) {
    .mhotd-today-header h3 {
        font-size: 1.8rem;
    }
    .mhotd-dates {
        flex-direction: column;
        gap: 5px;
    }
    .mhotd-hijri {
        border-left: none;
        padding-left: 0;
    }
}

/* Social Share Buttons */
.mhotd-social-share {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed #e5e7eb;
}

.mhotd-share-btn {
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    transition: opacity 0.2s;
}

.mhotd-share-btn:hover {
    opacity: 0.8;
    color: #fff;
}

.mhotd-share-btn.twitter { background: #000; }
.mhotd-share-btn.facebook { background: #1877f2; }
.mhotd-share-btn.whatsapp { background: #25d366; }

/* Spiritual Box */
.mhotd-spiritual-box {
    background: #f0fdf4;
    border-left: 4px solid #059669;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.mhotd-spiritual-title {
    margin: 0 0 10px;
    color: #065f46;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mhotd-quote p {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 10px;
    color: #064e3b;
}

.mhotd-quote cite {
    font-weight: 600;
    color: #059669;
}

/* Did You Know Widget */
.mhotd-dyk-text {
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.5;
    background: #fffbeb;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #fde68a;
}
