/**
 * Frontend styles for GGnews web
 *
 * @package PublishPress_Content_Writer
 */

/* Breaking News Banner */
.ppcw-breaking-news-banner {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.3);
}

.ppcw-breaking-news-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-weight: 700;
    font-size: 18px;
}

.ppcw-breaking-icon {
    font-size: 24px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.ppcw-breaking-news-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ppcw-breaking-news-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}

.ppcw-breaking-news-item a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    flex: 1;
}

.ppcw-breaking-news-item a:hover {
    text-decoration: underline;
}

.ppcw-breaking-source {
    font-size: 12px;
    opacity: 0.9;
    margin-left: 15px;
}

/* Featured News */
.ppcw-featured-news {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}

.ppcw-featured-news.ppcw-layout-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.ppcw-featured-news-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ppcw-featured-news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.ppcw-featured-image {
    width: 100%;
    overflow: hidden;
}

.ppcw-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.ppcw-featured-content {
    padding: 20px;
}

.ppcw-featured-content h3 {
    margin: 0 0 10px;
    font-size: 20px;
}

.ppcw-featured-content h3 a {
    color: #1f2937;
    text-decoration: none;
}

.ppcw-featured-content h3 a:hover {
    color: #667eea;
}

.ppcw-featured-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #6b7280;
}

.ppcw-featured-excerpt {
    color: #4b5563;
    line-height: 1.6;
}

/* Recent News */
.ppcw-recent-news {
    margin: 20px 0;
}

.ppcw-recent-news-item {
    padding: 15px 0;
    border-bottom: 1px solid #e5e7eb;
}

.ppcw-recent-news-item:last-child {
    border-bottom: none;
}

.ppcw-recent-news-item h4 {
    margin: 0 0 8px;
    font-size: 16px;
}

.ppcw-recent-news-item h4 a {
    color: #1f2937;
    text-decoration: none;
}

.ppcw-recent-news-item h4 a:hover {
    color: #667eea;
}

.ppcw-recent-meta {
    display: flex;
    gap: 10px;
    font-size: 13px;
    color: #6b7280;
}

.ppcw-badge-breaking {
    display: inline-block;
    padding: 2px 8px;
    background: #fee2e2;
    color: #991b1b;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

/* Related News */
.ppcw-related-news {
    margin: 40px 0;
    padding: 30px;
    background: #f9fafb;
    border-radius: 12px;
}

.ppcw-related-title {
    margin: 0 0 20px;
    font-size: 24px;
    color: #1f2937;
}

.ppcw-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.ppcw-related-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.ppcw-related-item:hover {
    transform: translateY(-3px);
}

.ppcw-related-image {
    width: 100%;
    overflow: hidden;
}

.ppcw-related-image img {
    width: 100%;
    height: auto;
    display: block;
}

.ppcw-related-content {
    padding: 15px;
}

.ppcw-related-content h4 {
    margin: 0 0 8px;
    font-size: 14px;
}

.ppcw-related-content h4 a {
    color: #1f2937;
    text-decoration: none;
}

.ppcw-related-content h4 a:hover {
    color: #667eea;
}

.ppcw-related-date {
    font-size: 12px;
    color: #6b7280;
}

/* News Source */
.ppcw-news-source {
    margin-top: 20px;
    padding: 15px;
    background: #f3f4f6;
    border-left: 4px solid #667eea;
    border-radius: 4px;
    font-size: 14px;
    color: #4b5563;
}

.ppcw-news-source strong {
    color: #1f2937;
    margin-right: 8px;
}

/* Widget Styles */
.ppcw-widget-breaking-list,
.ppcw-widget-featured-list,
.ppcw-widget-recent-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ppcw-widget-breaking-list li,
.ppcw-widget-featured-list li,
.ppcw-widget-recent-list li {
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}

.ppcw-widget-breaking-list li:last-child,
.ppcw-widget-featured-list li:last-child,
.ppcw-widget-recent-list li:last-child {
    border-bottom: none;
}

.ppcw-widget-breaking-list li a,
.ppcw-widget-featured-list li a,
.ppcw-widget-recent-list li a {
    color: #1f2937;
    text-decoration: none;
    display: block;
}

.ppcw-widget-breaking-list li a:hover,
.ppcw-widget-featured-list li a:hover,
.ppcw-widget-recent-list li a:hover {
    color: #667eea;
}

.ppcw-widget-featured-list li img {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
    border-radius: 4px;
}

.ppcw-widget-date {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-top: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .ppcw-featured-news.ppcw-layout-grid {
        grid-template-columns: 1fr;
    }
    
    .ppcw-related-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}
