/* Trevor Decker Fresh Content Bridge - Frontend Styles */

/* === Top Banner === */
.tdfc-top-banner {
    margin: 0 0 20px 0;
    padding: 14px 18px;
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    border-left: 4px solid #ff6b35;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.tdfc-banner-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.tdfc-banner-icon {
    font-size: 1.5em;
    flex-shrink: 0;
}
.tdfc-banner-content {
    flex: 1;
    min-width: 200px;
}
.tdfc-banner-meta {
    display: block;
    font-size: 0.85em;
    color: #6d4c00;
    margin-bottom: 4px;
}
.tdfc-banner-link {
    display: inline-block;
    font-weight: 600;
    color: #c43e00;
    text-decoration: none;
    font-size: 1.05em;
    line-height: 1.4;
}
.tdfc-banner-link:hover { text-decoration: underline; }
.tdfc-arrow { transition: transform 0.2s; display: inline-block; }
.tdfc-banner-link:hover .tdfc-arrow { transform: translateX(3px); }

/* === Inline Callout === */
.tdfc-inline-callout {
    margin: 28px 0;
    padding: 18px 20px;
    background: #f8f9ff;
    border: 1px solid #e0e4f5;
    border-left: 4px solid #4361ee;
    border-radius: 6px;
}
.tdfc-callout-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.tdfc-pulse-dot {
    width: 10px;
    height: 10px;
    background: #ef4444;
    border-radius: 50%;
    animation: tdfc-pulse 2s infinite;
    flex-shrink: 0;
}
@keyframes tdfc-pulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}
.tdfc-callout-title {
    font-weight: 700;
    color: #1a2754;
    font-size: 1em;
}
.tdfc-callout-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.tdfc-callout-item {
    margin: 0;
    padding: 8px 0;
    border-bottom: 1px solid #e8ebf5;
}
.tdfc-callout-item:last-child { border-bottom: none; }
.tdfc-callout-item a {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-decoration: none;
    color: inherit;
    padding: 4px 0;
    transition: padding-left 0.2s;
}
.tdfc-callout-item a:hover { padding-left: 6px; }
.tdfc-item-date {
    font-size: 0.8em;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.tdfc-item-title {
    color: #1a2754;
    font-weight: 500;
    line-height: 1.4;
}
.tdfc-callout-item a:hover .tdfc-item-title { color: #4361ee; }

/* === Sticky Widget === */
.tdfc-sticky-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 320px;
    max-width: calc(100vw - 40px);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    z-index: 9999;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    animation: tdfc-slide-in 0.4s ease-out;
}
@keyframes tdfc-slide-in {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.tdfc-sticky-toggle {
    width: 100%;
    background: linear-gradient(135deg, #1a2754 0%, #4361ee 100%);
    color: #fff;
    border: none;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95em;
    text-align: left;
}
.tdfc-sticky-pulse {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: tdfc-pulse 2s infinite;
    flex-shrink: 0;
}
.tdfc-sticky-title { flex: 1; }
.tdfc-sticky-collapse { font-size: 1.3em; line-height: 1; }
.tdfc-sticky-body {
    max-height: 400px;
    overflow-y: auto;
    transition: max-height 0.3s ease-out;
}
.tdfc-sticky-widget.tdfc-collapsed .tdfc-sticky-body {
    max-height: 0;
    overflow: hidden;
}
.tdfc-sticky-item {
    display: block;
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}
.tdfc-sticky-item:last-child { border-bottom: none; }
.tdfc-sticky-item:hover { background: #f9fafb; }
.tdfc-sticky-item.tdfc-newest {
    background: linear-gradient(90deg, #fff8e1 0%, #fff 100%);
}
.tdfc-sticky-date {
    display: block;
    font-size: 0.75em;
    color: #ef4444;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}
.tdfc-sticky-headline {
    display: block;
    color: #1f2937;
    font-weight: 500;
    line-height: 1.35;
    font-size: 0.92em;
}

/* === End Section === */
.tdfc-end-section {
    margin-top: 40px;
    padding: 24px;
    background: #f9fafb;
    border-radius: 10px;
    border-top: 3px solid #4361ee;
}
.tdfc-end-title {
    margin: 0 0 18px 0;
    font-size: 1.4em;
    color: #1a2754;
    font-weight: 700;
}
.tdfc-end-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}
.tdfc-end-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}
.tdfc-end-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.tdfc-end-thumb img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}
.tdfc-end-meta { padding: 12px 14px; }
.tdfc-end-date {
    display: block;
    font-size: 0.75em;
    color: #ef4444;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.tdfc-end-title-text {
    display: block;
    color: #1a2754;
    font-weight: 600;
    line-height: 1.4;
}

/* === Mobile Adjustments === */
@media (max-width: 600px) {
    .tdfc-sticky-widget {
        width: calc(100vw - 20px);
        bottom: 10px;
        right: 10px;
    }
    .tdfc-end-grid {
        grid-template-columns: 1fr;
    }
    .tdfc-banner-inner {
        gap: 8px;
    }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .tdfc-pulse-dot,
    .tdfc-sticky-pulse {
        animation: none;
    }
    .tdfc-sticky-widget {
        animation: none;
    }
}
