/**
 * Newsfy - Newspaper Distribution Styles
 * Estilos para distribuciones de periódico inspirados en ErliNews
 */

/* ==========================================================================
   Newspaper Typography & Base Styles
   ========================================================================== */

body.distribution-active {
    font-family: var(--font-body, 'Inter', sans-serif);
}

.distribution-active h1,
.distribution-active h2,
.distribution-active h3,
.distribution-active h4,
.distribution-active h5,
.distribution-active h6 {
    font-family: var(--font-heading, 'Merriweather', serif);
    letter-spacing: -0.01em;
}

/* Drop Caps */
.distribution-active .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);
}

/* ==========================================================================
   Header Styles
   ========================================================================== */

/* Classic Header */
.header-style-classic .header-top-bar {
    background: var(--newspaper-primary, #1a1a1a);
    color: #fff;
    padding: 8px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header-style-classic .header-top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-style-classic .header-date {
    font-family: var(--font-heading, 'Merriweather', serif);
}

.header-style-classic .header-logo {
    padding: 30px 0;
    text-align: center;
}

.header-style-classic .site-tagline {
    font-family: var(--font-heading, 'Merriweather', serif);
    font-style: italic;
    color: #666;
    margin-top: 5px;
    font-size: 0.95rem;
}

.header-style-classic .header-nav {
    border-top: 3px double var(--newspaper-border, #e0e0e0);
    border-bottom: 1px solid var(--newspaper-border, #e0e0e0);
    padding: 10px 0;
}

.header-style-classic .header-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.header-style-classic .header-nav a {
    font-family: var(--font-heading, 'Merriweather', serif);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/* Breaking News Header */
.header-style-breaking-news .breaking-news-ticker {
    background: var(--newspaper-secondary, #8b0000);
    color: #fff;
    padding: 8px 0;
    overflow: hidden;
}

.breaking-news-ticker-inner {
    display: flex;
    align-items: center;
    gap: 15px;
}

.breaking-news-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 1px;
    white-space: nowrap;
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.ticker-wrapper {
    overflow: hidden;
    flex: 1;
}

.ticker-item {
    padding: 3px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ticker-item a {
    color: #fff;
    text-decoration: none;
}

.ticker-item a:hover {
    text-decoration: underline;
}

.ticker-time {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-right: 8px;
}

/* Magazine Header */
.header-style-magazine .header-top-bar {
    border-bottom: 1px solid var(--newspaper-border, #e5e7eb);
    padding: 8px 0;
}

.header-style-magazine .header-main {
    padding: 20px 0;
    border-bottom: 2px solid var(--newspaper-primary, #111111);
}

.header-style-magazine .header-main-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-style-magazine .header-logo {
    flex: 1;
}

.header-style-magazine .header-nav ul {
    display: flex;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-style-magazine .header-nav a {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.header-style-magazine .header-secondary-nav {
    border-top: 1px solid var(--newspaper-border, #e5e7eb);
    padding: 8px 0;
}

/* Minimal Header */
.header-style-minimal {
    border-bottom: 1px solid var(--newspaper-border, #e5e7eb);
}

.header-style-minimal .header-main-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.header-style-minimal .header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.header-style-minimal .header-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.98);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}

.header-style-minimal .header-search-overlay.active {
    display: flex;
}

/* Dark Header */
.header-style-dark {
    background: #0a0a0a;
    color: #fff;
}

.header-style-dark .header-top-bar {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 8px 0;
    font-size: 0.85rem;
}

.header-style-dark .header-main {
    padding: 20px 0;
}

.header-style-dark .header-nav ul {
    display: flex;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-style-dark .header-nav a {
    color: #fff;
}

/* Elegant Header */
.header-style-elegant .header-top-bar {
    border-bottom: 1px solid var(--newspaper-border, #e5e7eb);
    padding: 8px 0;
}

.header-style-elegant .header-main {
    padding: 25px 0;
    border-bottom: 1px solid var(--newspaper-accent, #d4af37);
}

.header-style-elegant .header-logo {
    text-align: center;
}

.header-style-elegant .header-nav ul {
    display: flex;
    justify-content: center;
    gap: 30px;
    list-style: none;
    margin: 15px 0 0 0;
    padding: 0;
}

.header-style-elegant .header-nav a {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/* Compact Header */
.header-style-compact {
    border-bottom: 1px solid var(--newspaper-border, #e5e7eb);
}

.header-style-compact .header-main-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.header-style-compact .header-logo {
    flex: 1;
}

.header-style-compact .mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.header-style-compact .mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--newspaper-primary, #111111);
    transition: 0.3s;
}

@media (max-width: 768px) {
    .header-style-compact .mobile-menu-toggle {
        display: flex;
    }
    
    .header-style-compact .header-nav {
        display: none;
    }
}

/* ==========================================================================
   Footer Styles
   ========================================================================== */

/* Classic Footer */
.footer-style-classic .footer-main {
    background: var(--newspaper-bg, #fafafa);
    border-top: 3px double var(--newspaper-border, #e0e0e0);
    padding: 50px 0 30px;
}

.footer-style-classic .footer-widgets {
    margin-bottom: 30px;
}

.footer-style-classic .footer-bottom {
    border-top: 1px solid var(--newspaper-border, #e0e0e0);
    padding: 20px 0;
    background: var(--newspaper-primary, #1a1a1a);
    color: #fff;
}

.footer-style-classic .footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-style-classic .footer-copyright a {
    color: #fff;
}

/* Magazine Footer */
.footer-style-magazine .footer-newsletter {
    background: var(--newspaper-primary, #000000);
    color: #fff;
    padding: 40px 0;
}

.footer-style-magazine .footer-newsletter-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.footer-style-magazine .newsletter-title {
    font-family: var(--font-heading, 'Playfair Display', serif);
    margin: 0 0 5px 0;
}

.footer-style-magazine .newsletter-text {
    margin: 0;
    opacity: 0.8;
}

.footer-style-magazine .newsletter-form {
    min-width: 300px;
}

.footer-style-magazine .newsletter-form input {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 12px 20px;
}

.footer-style-magazine .newsletter-form input::placeholder {
    color: rgba(255,255,255,0.6);
}

/* Minimal Footer */
.footer-style-minimal .footer-main {
    padding: 40px 0;
    border-top: 1px solid var(--newspaper-border, #e5e7eb);
}

.footer-style-minimal .footer-content {
    text-align: center;
}

.footer-style-minimal .footer-bottom {
    border-top: 1px solid var(--newspaper-border, #e5e7eb);
    padding: 20px 0;
}

.footer-style-minimal .footer-copyright {
    text-align: center;
}

/* Dark Footer */
.footer-style-dark {
    background: #0a0a0a;
    color: #fff;
}

.footer-style-dark .footer-main {
    padding: 50px 0 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-style-dark .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
}

/* Newsletter Footer */
.footer-style-newsletter .footer-newsletter {
    background: linear-gradient(135deg, var(--newspaper-primary, #064e3b), var(--newspaper-secondary, #dc2626));
    color: #fff;
    padding: 50px 0;
}

.footer-style-newsletter .footer-newsletter-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.footer-style-newsletter .newsletter-form input {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 12px 20px;
}

.footer-style-newsletter .newsletter-form input::placeholder {
    color: rgba(255,255,255,0.7);
}

/* Extended Footer */
.footer-style-extended .footer-main {
    padding: 50px 0 30px;
    border-top: 3px double var(--newspaper-border, #e0e0e0);
    background: var(--newspaper-bg, #fafafa);
}

.footer-style-extended .footer-col h4 {
    font-family: var(--font-heading, 'Merriweather', serif);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--newspaper-border, #e0e0e0);
}

.footer-style-extended .footer-bottom {
    border-top: 1px solid var(--newspaper-border, #e0e0e0);
    padding: 20px 0;
}

.footer-style-extended .footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ==========================================================================
   Single Post Hero Styles
   ========================================================================== */

/* Classic Hero */
.single-hero-classic .single-hero-inner {
    padding: 40px 0;
    border-bottom: 1px solid var(--newspaper-border, #e0e0e0);
}

.single-hero-classic .post-categories {
    margin-bottom: 15px;
}

.single-hero-classic .post-categories a {
    background: var(--newspaper-secondary, #8b0000);
    color: #fff;
    padding: 3px 10px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.single-hero-classic .post-title {
    font-family: var(--font-heading, 'Merriweather', serif);
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--newspaper-border, #e0e0e0);
    padding-bottom: 20px;
}

.single-hero-classic .post-meta {
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.single-hero-classic .post-featured-image {
    margin-bottom: 30px;
}

.single-hero-classic .post-featured-image img {
    border: 1px solid var(--newspaper-border, #e0e0e0);
    padding: 5px;
}

/* Magazine Hero */
.single-hero-magazine .post-featured-image {
    position: relative;
    margin-bottom: 40px;
}

.single-hero-magazine .post-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 60px 30px 30px;
}

.single-hero-magazine .post-hero-content {
    position: relative;
    z-index: 1;
}

.single-hero-magazine .post-title {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 3rem;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 15px;
}

.single-hero-magazine .post-meta {
    color: rgba(255,255,255,0.9);
}

.single-hero-magazine .post-categories a {
    background: var(--newspaper-secondary, #7c3aed);
    color: #fff;
    padding: 5px 15px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
}

/* Breaking Hero */
.single-hero-breaking .post-breaking-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--newspaper-secondary, #dc2626);
    color: #fff;
    padding: 8px 20px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.single-hero-breaking .post-title {
    font-family: var(--font-heading, 'Oswald', sans-serif);
    font-size: 2.8rem;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.single-hero-breaking .post-excerpt {
    font-size: 1.1rem;
    color: #555;
    padding: 20px;
    border-left: 4px solid var(--newspaper-secondary, #dc2626);
    background: #f9f9f9;
}

/* Minimal Hero */
.single-hero-minimal .single-hero-inner {
    padding: 40px 0;
}

.single-hero-minimal .post-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 15px;
}

.single-hero-minimal .post-meta {
    color: #888;
    margin-bottom: 30px;
}

/* Dark Hero */
.single-hero-dark {
    color: #fff;
}

.single-hero-dark .post-featured-image {
    position: relative;
    margin-bottom: 40px;
}

.single-hero-dark .post-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}

.single-hero-dark .post-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    z-index: 1;
}

.single-hero-dark .post-title {
    font-size: 2.8rem;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 15px;
}

.single-hero-dark .post-meta {
    color: rgba(255,255,255,0.9);
}

/* Traditional Hero */
.single-hero-traditional .post-hero-header {
    text-align: center;
    padding: 40px 0;
    border-bottom: 1px solid var(--newspaper-border, #e0e0e0);
}

.single-hero-traditional .post-categories {
    margin-bottom: 15px;
}

.single-hero-traditional .post-title {
    font-family: var(--font-heading, 'Old Standard TT', serif);
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.single-hero-traditional .post-meta {
    color: #666;
    font-size: 0.95rem;
}

.single-hero-traditional .post-image-caption {
    text-align: center;
    font-style: italic;
    color: #666;
    margin-top: 10px;
    font-size: 0.9rem;
}

/* ==========================================================================
   Category & Tag Templates
   ========================================================================== */

.category-template-grid .category-header,
.tag-template-grid .tag-header {
    padding: 30px 0;
    border-bottom: 1px solid var(--newspaper-border, #e0e0e0);
    margin-bottom: 30px;
}

.category-template-grid .category-title,
.tag-template-grid .tag-title {
    font-family: var(--font-heading, 'Merriweather', serif);
    margin-bottom: 10px;
}

.category-card-inner,
.tag-card-inner {
    background: #fff;
    border: 1px solid var(--newspaper-border, #e5e7eb);
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.3s;
    height: 100%;
}

.category-card-inner:hover,
.tag-card-inner:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.category-card .post-thumbnail a,
.tag-card .post-thumbnail a {
    display: block;
}

.category-card .post-thumbnail img,
.tag-card .post-thumbnail img {
    width: 100%;
    height: auto;
}

.category-card .post-content,
.tag-card .post-content {
    padding: 20px;
}

.category-list-item,
.tag-list-item {
    border-bottom: 1px solid var(--newspaper-border, #e0e0e0);
    padding: 25px 0;
}

.category-list-item:last-child,
.tag-list-item:last-child {
    border-bottom: none;
}

.tag-template-cloud .tag-related-title {
    font-family: var(--font-heading, 'Merriweather', serif);
    margin-bottom: 20px;
}

.tag-compact-item {
    border-bottom: 1px dotted var(--newspaper-border, #e0e0e0);
    padding: 12px 0;
}

.tag-compact-item:last-child {
    border-bottom: none;
}

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

.breaking-news-widget {
    background: var(--newspaper-secondary, #8b0000);
    color: #fff;
    border-radius: 4px;
    overflow: hidden;
}

.breaking-news-widget-inner {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
}

.breaking-news-widget .breaking-news-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 1px;
    white-space: nowrap;
}

.breaking-news-widget .ticker-item a {
    color: #fff;
    text-decoration: none;
}

.breaking-news-widget .ticker-item a:hover {
    text-decoration: underline;
}

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

.classic-author-widget .author-avatar {
    flex-shrink: 0;
}

.classic-author-widget .author-avatar img {
    border: 2px solid var(--newspaper-border, #e0e0e0);
    padding: 3px;
}

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

.classic-author-widget .author-meta {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
}

.classic-author-widget .author-bio {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #555;
}

.classic-related-posts .related-posts-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.classic-related-posts .related-post-item {
    border-bottom: 1px solid var(--newspaper-border, #e0e0e0);
    padding: 15px 0;
}

.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-title {
    font-size: 0.95rem;
    margin-bottom: 5px;
}

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

.datetime-widget {
    background: var(--newspaper-primary, #1a1a1a);
    color: #fff;
    padding: 10px 15px;
    border-radius: 4px;
}

.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;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

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

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

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

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

.divider-ornament {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.divider-ornament::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--newspaper-border, #e0e0e0);
}

.divider-ornament span {
    background: var(--newspaper-bg, #fff);
    padding: 0 15px;
    position: relative;
}
