/* Widget Base Styles */
.widget { background: #fff; border-radius: 8px; padding: 20px; margin-bottom: 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
.widget-title { font-size: 16px; font-weight: 700; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 2px solid #c8102e; display: flex; align-items: center; gap: 8px; }
.widget-title i { color: #c8102e; }

/* Weather Widget */
.weather-widget .weather-content { text-align: center; }
.weather-widget .weather-city { font-size: 14px; color: #666; margin-bottom: 10px; }
.weather-widget .weather-temp { font-size: 48px; font-weight: 700; color: #1a1a2e; }
.weather-widget .weather-desc { color: #666; margin-bottom: 10px; }
.weather-widget .weather-details { display: flex; justify-content: center; gap: 20px; font-size: 13px; color: #888; }

/* Poll Widget */
.poll-widget .poll-question { font-weight: 600; margin-bottom: 15px; }
.poll-widget .poll-option { display: block; padding: 10px 15px; margin-bottom: 8px; background: #f5f5f5; border-radius: 5px; cursor: pointer; transition: all 0.3s; }
.poll-widget .poll-option:hover { background: #e8e8e8; }
.poll-widget .poll-option input { margin-right: 10px; }
.poll-widget .poll-btn { width: 100%; padding: 12px; background: #c8102e; color: #fff; border: none; border-radius: 5px; font-weight: 600; cursor: pointer; }
.poll-widget .poll-btn:hover { background: #a00d24; }

/* Social Widget */
.social-widget .social-buttons { display: flex; flex-direction: column; gap: 10px; }
.social-widget .social-btn { display: flex; align-items: center; padding: 12px 15px; border-radius: 5px; color: #fff; text-decoration: none; transition: all 0.3s; }
.social-widget .social-btn i { width: 30px; font-size: 18px; }
.social-widget .social-btn.facebook { background: #1877f2; }
.social-widget .social-btn.twitter { background: #1da1f2; }
.social-widget .social-btn.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-widget .social-btn.youtube { background: #ff0000; }
.social-widget .social-btn:hover { transform: translateX(5px); opacity: 0.9; }

/* Popular News Widget */
.popular-widget .popular-list { display: flex; flex-direction: column; gap: 15px; }
.popular-widget .popular-item { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #333; }
.popular-widget .popular-item:hover .popular-title { color: #c8102e; }
.popular-widget .popular-num { width: 28px; height: 28px; background: #c8102e; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.popular-widget .popular-item img { width: 70px; height: 50px; object-fit: cover; border-radius: 5px; flex-shrink: 0; }
.popular-widget .popular-title { font-size: 13px; line-height: 1.4; }

/* Breaking Ticker */
.breaking-ticker { background: #c8102e; color: #fff; display: flex; align-items: center; overflow: hidden; }
.breaking-ticker .ticker-label { background: #1a1a2e; padding: 12px 20px; font-weight: 700; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.breaking-ticker .ticker-wrapper { flex: 1; overflow: hidden; }
.breaking-ticker .ticker-content { display: flex; animation: ticker 30s linear infinite; white-space: nowrap; }
.breaking-ticker .ticker-item { padding: 12px 30px; color: #fff; text-decoration: none; }
.breaking-ticker .ticker-item:hover { text-decoration: underline; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Finance Widget */
.finance-widget .finance-table { display: flex; flex-direction: column; gap: 10px; }
.finance-widget .finance-row { display: flex; justify-content: space-between; padding: 10px; background: #f8f9fa; border-radius: 5px; }
.finance-widget .finance-row .up { color: #28a745; font-weight: 600; }
.finance-widget .finance-row .down { color: #dc3545; font-weight: 600; }

/* Prayer Widget */
.prayer-widget .prayer-city { text-align: center; color: #666; margin-bottom: 15px; }
.prayer-widget .prayer-times { display: flex; flex-direction: column; gap: 8px; }
.prayer-widget .prayer-row { display: flex; justify-content: space-between; padding: 8px 12px; background: #f8f9fa; border-radius: 5px; }

/* Calendar Widget */
.calendar-widget .calendar-date { text-align: center; padding: 20px; }
.calendar-widget .cal-day { font-size: 18px; font-weight: 600; color: #1a1a2e; }
.calendar-widget .cal-hijri { font-size: 14px; color: #666; margin-top: 5px; }

/* Newsletter Widget */
.newsletter-widget p { font-size: 14px; color: #666; margin-bottom: 15px; }
.newsletter-widget .newsletter-form input { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 5px; margin-bottom: 10px; }
.newsletter-widget .newsletter-form button { width: 100%; padding: 12px; background: #c8102e; color: #fff; border: none; border-radius: 5px; cursor: pointer; }

/* Contact Widget */
.contact-widget .contact-form input, .contact-widget .contact-form textarea { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 5px; margin-bottom: 10px; }
.contact-widget .contact-form button { width: 100%; padding: 12px; background: #c8102e; color: #fff; border: none; border-radius: 5px; cursor: pointer; }

/* Tags Widget */
.tags-widget .tags-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tags-widget .tag-item { padding: 6px 12px; background: #f0f0f0; border-radius: 20px; font-size: 13px; color: #555; text-decoration: none; transition: all 0.3s; }
.tags-widget .tag-item:hover { background: #c8102e; color: #fff; }

/* Archive Widget */
.archive-widget .archive-list { list-style: none; padding: 0; margin: 0; }
.archive-widget .archive-list li { margin-bottom: 8px; }
.archive-widget .archive-list a { color: #333; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.archive-widget .archive-list a:hover { color: #c8102e; }

/* Video/Gallery Widget */
.video-widget .video-grid, .gallery-widget .gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.video-widget .video-item { position: relative; border-radius: 5px; overflow: hidden; }
.video-widget .video-item img { width: 100%; height: 80px; object-fit: cover; }
.video-widget .play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 30px; height: 30px; background: rgba(200,16,46,0.9); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; }
.gallery-widget .gallery-item img { width: 100%; height: 70px; object-fit: cover; border-radius: 5px; }

/* Writers Sidebar Widget */
.writers-sidebar-widget .writers-list { display: flex; flex-direction: column; gap: 10px; }
.writers-sidebar-widget .writer-mini { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #333; }
.writers-sidebar-widget .writer-mini img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.writers-sidebar-widget .writer-mini:hover span { color: #c8102e; }

/* Ad Widget */
.ad-widget .ad-placeholder { height: 250px; background: #f0f0f0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #999; border: 2px dashed #ddd; border-radius: 5px; }
.ad-widget .ad-banner { width: 100%; border-radius: 5px; }

/* Comments Widget */
.comments-widget .comments-list { display: flex; flex-direction: column; gap: 12px; }
.comments-widget .comment-mini { padding: 10px; background: #f8f9fa; border-radius: 5px; }
.comments-widget .comment-mini strong { font-size: 13px; color: #c8102e; }
.comments-widget .comment-mini p { font-size: 12px; color: #666; margin: 5px 0 0; }
.comments-widget .no-comments { text-align: center; color: #999; padding: 20px; }

/* Live Widget */
.live-widget .live-placeholder { height: 150px; background: #1a1a2e; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; border-radius: 5px; }
.live-widget .live-placeholder i { font-size: 40px; margin-bottom: 10px; opacity: 0.5; }
