/**
 * Custom styles for Newsfy Child Theme
 *
 * @package Newsfy_Child
 */

/* ==========================================================================
   Distribuciones - Estilos adicionales
   ========================================================================== */

/* Classic News Overrides */
body.distribution-classic-news {
    --font-heading: 'Merriweather', serif;
    --font-body: 'Inter', sans-serif;
    --newspaper-primary: #1a1a1a;
    --newspaper-secondary: #8b0000;
    --newspaper-accent: #c9a227;
}

/* Modern News Overrides */
body.distribution-modern-news {
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --newspaper-primary: #111111;
    --newspaper-secondary: #2563eb;
    --newspaper-accent: #f59e0b;
}

/* Editorial Magazine Overrides */
body.distribution-editorial-mag {
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --newspaper-primary: #000000;
    --newspaper-secondary: #7c3aed;
    --newspaper-accent: #d4af37;
}

/* Sports Daily Overrides */
body.distribution-sports-daily {
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
    --newspaper-primary: #064e3b;
    --newspaper-secondary: #dc2626;
    --newspaper-accent: #fbbf24;
}

/* Tech Chronicle Overrides */
body.distribution-tech-chronicle {
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --newspaper-primary: #0f172a;
    --newspaper-secondary: #3b82f6;
    --newspaper-accent: #06b6d4;
}

/* ==========================================================================
   Tipografía Personalizada
   ========================================================================== */

/* Importar fuentes adicionales */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;1,400&family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Old+Standard+TT:ital,wght@0,400;0,700;1,400&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Oswald:wght@400;500;700&family=Roboto+Condensed:ital,wght@0,400;0,700;1,400&display=swap');

/* ==========================================================================
   Componentes de Periódico
   ========================================================================== */

/* Meta información de posts */
.post-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 15px 0;
    margin-bottom: 20px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
    color: #666;
}

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

.post-meta-bar i {
    font-size: 0.85rem;
}

/* Drop Cap mejorado */
.single-content > p:first-of-type::first-letter {
    float: left;
    font-size: 4.5rem;
    line-height: 0.8;
    padding-right: 0.15em;
    padding-top: 0.05em;
    font-family: var(--font-heading, 'Merriweather', serif);
    font-weight: 700;
    color: var(--accent-color, #ff3c3c);
}

/* Separadores ornamentales */
.ornament-divider {
    text-align: center;
    margin: 40px 0;
    position: relative;
    height: 20px;
}

.ornament-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #ddd;
}

.ornament-divider::after {
    content: "❖";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 0 15px;
    color: #999;
    font-size: 1.2rem;
}

/* ==========================================================================
   Widgets Personalizados
   ========================================================================== */

/* Breaking News Widget mejorado */
.breaking-news-widget {
    background: var(--newspaper-secondary, #8b0000);
    color: #fff;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.breaking-news-widget .breaking-news-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #ff0000;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* Author Box mejorado */
.classic-author-widget {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    padding: 20px;
    border-radius: 4px;
}

.classic-author-widget-inner {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.classic-author-widget .author-avatar img {
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.classic-author-widget .author-name {
    font-family: var(--font-heading, 'Merriweather', serif);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

/* Related Posts mejorado */
.classic-related-posts .related-posts-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.classic-related-posts .related-post-item {
    padding: 15px 0;
    border-bottom: 1px dotted #ddd;
}

.classic-related-posts .related-post-item:last-child {
    border-bottom: none;
}

.classic-related-posts .related-post-inner {
    display: flex;
    gap: 15px;
    align-items: center;
}

.classic-related-posts .post-thumbnail img {
    border-radius: 4px;
}

.classic-related-posts .post-title {
    font-size: 0.95rem;
    margin-bottom: 5px;
    line-height: 1.4;
}

.classic-related-posts .post-date {
    font-size: 0.8rem;
    color: #888;
}

/* Date/Time Widget mejorado */
.datetime-widget {
    background: var(--newspaper-primary, #1a1a1a);
    color: #fff;
    padding: 12px 15px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.datetime-widget-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.datetime-widget-title {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

.datetime-info {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
}

/* ==========================================================================
   Utilidades para Periódico
   ========================================================================== */

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.text-justify { text-align: justify; }

.font-serif { font-family: var(--font-heading, 'Merriweather', serif) !important; }
.font-sans { font-family: var(--font-body, 'Inter', sans-serif) !important; }

.border-double { border-style: double; }
.border-top-double { border-top-style: double; }
.border-bottom-double { border-bottom-style: double; }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }

.p-0 { padding: 0; }
.p-1 { padding: 10px; }
.p-2 { padding: 20px; }
.p-3 { padding: 30px; }

/* Clases de utilidad para distribuciones */
.distribution-active .site-preloader {
    background: #fff;
}

.distribution-classic-news .site-default-footer {
    border-top: 3px double #e0e0e0;
}

.distribution-editorial-mag .site-default-footer {
    border-top: 1px solid #d4af37;
}

.distribution-sports-daily .breaking-news-ticker {
    background: #dc2626;
}

.distribution-tech-chronicle .site-default-footer {
    background: #0f172a;
    color: #fff;
}
