/* ==========================================================================
   USK Manager - Single Pages (Vídeos, Biblioteca Científica & Novidades)
   Identidade Visual: Gold #b8960c / Branco / Cinza claro
   ========================================================================== */

/* Reset */
.usk-single * { box-sizing: border-box; }

.usk-single {
    font-family: var(--usk-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif);
    color: #333;
    line-height: 1.7;
    background: var(--usk-bg, #f5f3ef);
}

/* Hero / Header */
.usk-single-hero {
    position: relative;
    background: linear-gradient(135deg, #2c2416 0%, #3d321f 50%, #4a3c25 100%);
    padding: 80px 0 60px;
    color: #fff;
    overflow: hidden;
}

.usk-single-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, var(--usk-bg, #f5f3ef), transparent);
}

.usk-single-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.usk-breadcrumb {
    font-size: 13px;
    margin-bottom: 20px;
    opacity: .7;
}

.usk-breadcrumb a {
    color: #fff;
    text-decoration: none;
    transition: opacity .2s;
}

.usk-breadcrumb a:hover { opacity: .8; }
.usk-breadcrumb span { margin: 0 8px; }

.usk-single-hero h1 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 16px;
    max-width: 800px;
    letter-spacing: -.3px;
}

.usk-single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    font-size: 13px;
    opacity: .8;
}

.usk-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.usk-meta-item svg {
    width: 16px;
    height: 16px;
    opacity: .7;
}

.usk-single-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.usk-tag {
    display: inline-block;
    padding: 5px 16px;
    background: rgba(184,150,12,.3);
    border: 1px solid rgba(184,150,12,.5);
    border-radius: 24px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: background .2s;
}

.usk-tag:hover {
    background: rgba(184,150,12,.5);
    color: #fff;
}

/* Main Layout */
.usk-single-layout {
    max-width: 1200px;
    margin: -20px auto 0;
    padding: 0 24px 60px;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
    position: relative;
    z-index: 2;
}

/* Content Area */
.usk-single-content {
    background: #fff;
    border-radius: var(--usk-radius, 16px);
    padding: 40px;
    box-shadow: var(--usk-shadow, 0 2px 12px rgba(0,0,0,.06));
}

.usk-single-featured-img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 32px;
    overflow: hidden;
}

.usk-single-featured-img img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.usk-single-body {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.usk-single-body h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 32px 0 16px;
    color: #1a1a1a;
}

.usk-single-body h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 28px 0 12px;
    color: #1a1a1a;
}

.usk-single-body p {
    margin: 0 0 16px;
}

.usk-single-body img {
    max-width: 100%;
    border-radius: 8px;
    margin: 16px 0;
}

.usk-single-body blockquote {
    border-left: 4px solid var(--usk-gold, #b8960c);
    margin: 24px 0;
    padding: 16px 24px;
    background: #faf8f2;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #555;
}

.usk-single-body ul, .usk-single-body ol {
    margin: 0 0 16px 20px;
}

.usk-single-body li {
    margin-bottom: 6px;
}

/* Share Buttons */
.usk-share-section {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--usk-border, #e8e4dd);
}

.usk-share-section h4 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #888;
    margin: 0 0 16px;
}

.usk-share-buttons {
    display: flex;
    gap: 10px;
}

.usk-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    text-decoration: none;
    color: #fff;
    font-size: 18px;
    transition: transform .2s, box-shadow .2s;
}

.usk-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    color: #fff;
}

.usk-share-facebook,
.usk-share-twitter,
.usk-share-whatsapp,
.usk-share-linkedin {
    background: #d1b35f;
}

.usk-share-facebook:hover,
.usk-share-twitter:hover,
.usk-share-whatsapp:hover,
.usk-share-linkedin:hover {
    background: var(--usk-gold, #b8960c);
}

.usk-share-copy {
    background: var(--usk-gold-dark, #9a7d0a);
    cursor: pointer;
    border: none;
}

/* Sidebar */
.usk-single-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.usk-sidebar-card {
    background: #fff;
    border-radius: var(--usk-radius, 16px);
    padding: 24px;
    box-shadow: var(--usk-shadow, 0 2px 12px rgba(0,0,0,.06));
}

.usk-sidebar-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 16px;
    color: #1a1a1a;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--usk-border, #e8e4dd);
}

/* Filter Tags in Sidebar */
.usk-filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.usk-filter-tag {
    display: inline-block;
    padding: 6px 16px;
    border: 1.5px solid var(--usk-border, #e8e4dd);
    border-radius: 24px;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-decoration: none;
    transition: all .25s;
}

.usk-filter-tag:hover,
.usk-filter-tag.active {
    background: var(--usk-gold, #b8960c);
    color: #fff;
    border-color: var(--usk-gold, #b8960c);
}

/* Latest Posts List in Sidebar */
.usk-latest-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.usk-latest-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0ece4;
    transition: background .2s;
}

.usk-latest-item:last-child { border-bottom: none; }

.usk-latest-item:hover {
    background: #faf8f2;
    margin: 0 -12px;
    padding-left: 12px;
    padding-right: 12px;
    border-radius: 8px;
}

.usk-latest-thumb {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f0ece4;
}

.usk-latest-info {
    flex: 1;
    min-width: 0;
}

.usk-latest-info a {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    line-height: 1.3;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.usk-latest-info a:hover { color: var(--usk-gold, #b8960c); }

.usk-latest-date {
    font-size: 11px;
    color: #aaa;
}

.usk-latest-thumb-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f0ece4, #e8e4dc);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 20px;
}

/* Related Posts Grid */
.usk-related-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 60px;
}

.usk-related-section h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 24px;
    color: #1a1a1a;
}

.usk-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.usk-related-card {
    background: #fff;
    border-radius: var(--usk-radius, 16px);
    overflow: hidden;
    box-shadow: var(--usk-shadow, 0 2px 12px rgba(0,0,0,.06));
    transition: transform .3s, box-shadow .3s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.usk-related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,.1);
}

.usk-related-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.usk-related-card-img-placeholder {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #f0ece4, #e0dcd4);
}

.usk-related-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.usk-related-card-body h4 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #1a1a1a;
    line-height: 1.3;
}

.usk-related-card-body p {
    font-size: 13px;
    color: #888;
    margin: 0 0 12px;
    line-height: 1.5;
    flex: 1;
}

.usk-related-card-meta {
    font-size: 11px;
    color: #aaa;
}

/* CTA Card */
.usk-cta-card {
    background: linear-gradient(135deg, var(--usk-gold, #b8960c), var(--usk-gold-light, #c9a84c));
    border-radius: var(--usk-radius, 16px);
    padding: 28px;
    color: #fff;
    text-align: center;
}

.usk-cta-card h3 {
    color: #fff;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 8px;
}

.usk-cta-card p {
    font-size: 13px;
    opacity: .9;
    margin: 0 0 16px;
    line-height: 1.5;
}

.usk-cta-btn {
    display: inline-block;
    padding: 10px 24px;
    background: #fff;
    color: var(--usk-gold, #b8960c);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
}

.usk-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
    color: var(--usk-gold-dark, #9a7d0a);
}

/* Responsive */
@media (max-width: 968px) {
    .usk-single-layout {
        grid-template-columns: 1fr;
    }

    .usk-single-hero h1 { font-size: 28px; }

    .usk-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .usk-single-hero { padding: 60px 0 40px; }
    .usk-single-hero h1 { font-size: 24px; }
    .usk-single-content { padding: 24px; }

    .usk-related-grid {
        grid-template-columns: 1fr;
    }

    .usk-single-featured-img img {
        height: 240px;
    }
}
