/**
 * Mirasat IPTV - Single Post Premium Styles
 * Estilos avançados para página de artigo único
 */

/* ========================================
   SINGLE POST - Layout Principal
======================================== */

.single-post {
    background: linear-gradient(180deg, var(--black) 0%, #0a0710 100%);
    padding: 100px 0 80px;
    min-height: 100vh;
}

.single-post .container {
    max-width: 1200px;
}

.single-post .row {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.single-post .col-md-8 {
    flex: 1;
    max-width: calc(66.666% - 20px);
}

.single-post .col-md-4 {
    flex: 0 0 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
}

/* ========================================
   ARTICLE CARD
======================================== */

.single-post article {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    border-radius: 24px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
    box-shadow: 
        0 4px 30px rgba(0, 0, 0, 0.3),
        0 1px 0 rgba(255, 255, 255, 0.05) inset;
    transition: all 0.4s ease;
}

.single-post article:hover {
    border-color: rgba(214, 17, 30, 0.2);
    box-shadow: 
        0 8px 50px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(214, 17, 30, 0.1);
}

/* ========================================
   POST THUMBNAIL - Hero Image
======================================== */

.single-post .post-thumbnail {
    position: relative;
    overflow: hidden;
    margin: 0;
}

.single-post .post-thumbnail img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.single-post article:hover .post-thumbnail img {
    transform: scale(1.03);
}

.single-post .post-thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        transparent 40%,
        rgba(23, 20, 34, 0.4) 70%,
        rgba(23, 20, 34, 0.95) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* Overlay decorativo */
.single-post .post-thumbnail::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--main), var(--second), var(--main));
    z-index: 2;
}

/* ========================================
   ENTRY HEADER
======================================== */

.single-post .entry-header {
    padding: 40px 50px 30px;
    margin-bottom: 0;
}

/* Meta do Post */
.single-post .post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 13px;
    color: var(--white-text);
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.single-post .post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.single-post .post-meta span:hover {
    background: rgba(214, 17, 30, 0.15);
}

.single-post .post-meta i {
    color: var(--main);
    font-size: 14px;
}

.single-post .post-meta a {
    color: var(--second);
    text-decoration: none;
    transition: color 0.3s ease;
}

.single-post .post-meta a:hover {
    color: var(--main);
}

/* Título */
.single-post .entry-title {
    font-size: 38px;
    color: var(--white);
    margin: 0;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* ========================================
   ENTRY CONTENT
======================================== */

.single-post .entry-content {
    padding: 20px 50px 50px;
    font-size: 17px;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.85);
}

.single-post .entry-content > *:first-child {
    margin-top: 0;
}

/* Parágrafos */
.single-post .entry-content p {
    margin-bottom: 24px;
    text-align: justify;
    text-justify: inter-word;
}

/* Drop Cap - Primeira letra grande */
.single-post .entry-content > p:first-of-type::first-letter {
    float: left;
    font-size: 4em;
    line-height: 0.8;
    padding-right: 12px;
    padding-top: 6px;
    font-weight: 800;
    color: var(--main);
    text-shadow: 2px 2px 0 rgba(214, 17, 30, 0.2);
}

/* Headings */
.single-post .entry-content h2 {
    font-size: 30px;
    color: var(--white);
    margin: 50px 0 25px;
    padding-left: 20px;
    border-left: 4px solid var(--main);
    position: relative;
}

.single-post .entry-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--main), var(--second));
    border-radius: 2px;
}

.single-post .entry-content h3 {
    font-size: 24px;
    color: var(--white);
    margin: 40px 0 20px;
    position: relative;
    padding-bottom: 12px;
}

.single-post .entry-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--second);
    border-radius: 1px;
}

.single-post .entry-content h4 {
    font-size: 20px;
    color: var(--second);
    margin: 35px 0 15px;
    font-weight: 700;
}

/* Links */
.single-post .entry-content a {
    color: var(--main);
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

.single-post .entry-content a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--main);
    transition: width 0.3s ease;
}

.single-post .entry-content a:hover::after {
    width: 100%;
}

/* Listas */
.single-post .entry-content ul,
.single-post .entry-content ol {
    margin: 25px 0;
    padding-left: 0;
}

.single-post .entry-content ul {
    list-style: none;
}

.single-post .entry-content ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.85);
}

.single-post .entry-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: var(--main);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(214, 17, 30, 0.5);
}

.single-post .entry-content ol {
    counter-reset: item;
    list-style: none;
}

.single-post .entry-content ol li {
    position: relative;
    padding-left: 40px;
    margin-bottom: 12px;
    counter-increment: item;
    color: rgba(255, 255, 255, 0.85);
}

.single-post .entry-content ol li::before {
    content: counter(item);
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    background: var(--main);
    color: #fff;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Blockquote */
.single-post .entry-content blockquote {
    background: linear-gradient(135deg, rgba(214, 17, 30, 0.1) 0%, rgba(221, 199, 109, 0.05) 100%);
    border: none;
    border-left: 4px solid var(--main);
    padding: 30px 35px;
    margin: 35px 0;
    border-radius: 0 16px 16px 0;
    position: relative;
    font-style: italic;
    color: var(--white);
    font-size: 18px;
    line-height: 1.7;
}

.single-post .entry-content blockquote::before {
    content: '"';
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 60px;
    color: var(--main);
    opacity: 0.3;
    font-family: Georgia, serif;
    line-height: 1;
}

.single-post .entry-content blockquote p {
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Imagens */
.single-post .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 35px 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.single-post .entry-content img:hover {
    transform: scale(1.01);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
}

/* Código */
.single-post .entry-content pre {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.single-post .entry-content code {
    background: rgba(0, 0, 0, 0.4);
    padding: 3px 8px;
    border-radius: 4px;
    color: var(--second);
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 14px;
}

.single-post .entry-content pre code {
    background: none;
    padding: 0;
}

/* ========================================
   ENTRY FOOTER - Tags
======================================== */

.single-post .entry-footer {
    padding: 30px 50px 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 0;
}

.single-post .post-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.single-post .post-tags > i {
    color: var(--main);
    font-size: 20px;
    margin-right: 5px;
}

.single-post .post-tags a {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--white-text);
    text-decoration: none;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.single-post .post-tags a:hover {
    background: var(--main);
    color: #fff;
    border-color: var(--main);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(214, 17, 30, 0.3);
}

/* ========================================
   POST NAVIGATION
======================================== */

.single-post .post-navigation {
    margin-top: 50px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.single-post .post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.single-post .post-navigation .nav-previous,
.single-post .post-navigation .nav-next {
    flex: 1;
    max-width: 48%;
}

.single-post .post-navigation .nav-next {
    text-align: right;
}

.single-post .post-navigation a {
    display: block;
    padding: 20px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
}

.single-post .post-navigation a:hover {
    background: rgba(214, 17, 30, 0.1);
    border-color: rgba(214, 17, 30, 0.3);
    transform: translateY(-3px);
}

.single-post .post-navigation .nav-subtitle {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--main);
    margin-bottom: 8px;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.single-post .post-navigation .nav-title {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    line-height: 1.4;
}

/* ========================================
   COMMENTS AREA - Seção de Comentários
======================================== */

.single-post .comments-area {
    margin-top: 50px;
    background: linear-gradient(145deg, #ffffff 0%, #f8f8f8 100%);
    border-radius: 24px;
    padding: 50px;
    border: none;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.1);
}

.single-post .comments-title {
    font-size: 26px;
    color: var(--black-text);
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--main);
    position: relative;
}

.single-post .comments-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--second);
}

/* Lista de Comentários */
.single-post .comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px;
}

.single-post .comment {
    padding: 30px;
    background: #fff;
    border-radius: 16px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.single-post .comment:hover {
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* Comentários aninhados */
.single-post .comment .children {
    list-style: none;
    padding-left: 30px;
    margin-top: 20px;
    border-left: 2px solid rgba(214, 17, 30, 0.2);
}

.single-post .comment .children .comment {
    margin-bottom: 15px;
    background: rgba(244, 242, 233, 0.5);
}

/* Autor do Comentário */
.single-post .comment-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.single-post .comment-author img {
    border-radius: 50%;
    border: 3px solid var(--main);
    box-shadow: 0 3px 15px rgba(214, 17, 30, 0.2);
}

.single-post .comment-author .fn {
    font-size: 16px;
    font-weight: 700;
    color: var(--black-text);
}

.single-post .comment-author .says {
    display: none;
}

.single-post .comment-metadata {
    font-size: 12px;
    color: var(--black-light);
    margin-top: 2px;
}

.single-post .comment-metadata a {
    color: var(--black-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.single-post .comment-metadata a:hover {
    color: var(--main);
}

/* Conteúdo do Comentário */
.single-post .comment-content {
    color: var(--black-text);
    line-height: 1.7;
    font-size: 15px;
}

.single-post .comment-content p {
    margin: 0 0 12px;
}

.single-post .comment-content p:last-child {
    margin-bottom: 0;
}

/* ========================================
   BOTÃO REPLY - CENTRALIZADO
======================================== */

.single-post .reply {
    display: flex;
    justify-content: flex-start;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.single-post .comment-reply-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--main) 0%, var(--main-darker) 100%);
    color: #fff !important;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(214, 17, 30, 0.3);
}

.single-post .comment-reply-link::before {
    content: '↩';
    font-size: 14px;
}

.single-post .comment-reply-link:hover {
    background: linear-gradient(135deg, var(--main-darker) 0%, var(--main) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(214, 17, 30, 0.4);
    color: #fff !important;
}

/* ========================================
   FORMULÁRIO DE COMENTÁRIO
======================================== */

.single-post .comment-respond {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid rgba(0, 0, 0, 0.06);
}

.single-post .comment-reply-title {
    font-size: 24px;
    color: var(--black-text);
    margin-bottom: 25px;
    font-weight: 700;
}

.single-post .comment-reply-title small {
    display: block;
    font-size: 14px;
    margin-top: 8px;
    font-weight: 400;
}

.single-post .comment-reply-title small a {
    color: var(--main);
    text-decoration: none;
}

.single-post .comment-reply-title small a:hover {
    text-decoration: underline;
}

.single-post .comment-notes {
    color: var(--black-light);
    font-size: 14px;
    margin-bottom: 25px;
}

.single-post .comment-form-comment,
.single-post .comment-form-author,
.single-post .comment-form-email,
.single-post .comment-form-url {
    margin-bottom: 20px;
}

.single-post .comment-form label {
    display: block;
    color: var(--black-text);
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.single-post .required {
    color: var(--main);
}

.single-post .comment-form input[type="text"],
.single-post .comment-form input[type="email"],
.single-post .comment-form input[type="url"],
.single-post .comment-form textarea {
    width: 100%;
    padding: 16px 20px;
    background: #fff;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    color: var(--black-text);
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.single-post .comment-form input:focus,
.single-post .comment-form textarea:focus {
    outline: none;
    border-color: var(--main);
    box-shadow: 0 0 0 4px rgba(214, 17, 30, 0.1);
}

.single-post .comment-form textarea {
    min-height: 180px;
    resize: vertical;
}

.single-post .comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 25px;
}

.single-post .comment-form-cookies-consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--main);
}

.single-post .comment-form-cookies-consent label {
    font-weight: 400;
    font-size: 13px;
    color: var(--black-light);
    line-height: 1.5;
}

/* Botão Submit - Centralizado */
.single-post .form-submit {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.single-post .comment-form .submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 50px;
    background: linear-gradient(135deg, var(--main) 0%, var(--main-darker) 100%);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 25px rgba(214, 17, 30, 0.35);
}

.single-post .comment-form .submit:hover {
    background: linear-gradient(135deg, var(--main-darker) 0%, var(--main) 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(214, 17, 30, 0.45);
}

/* ========================================
   SIDEBAR
======================================== */

.single-post .sidebar,
.single-post .col-md-4 .sidebar {
    padding-left: 0;
}

.single-post .widget {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.single-post .widget-title {
    font-size: 18px;
    color: var(--white);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--main);
    position: relative;
}

.single-post .widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--second);
}

.single-post .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.single-post .widget li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.single-post .widget li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.single-post .widget a {
    color: var(--white-text);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.single-post .widget a:hover {
    color: var(--main);
    padding-left: 5px;
}

/* Widget de Busca */
.single-post .widget .search-form {
    display: flex;
}

.single-post .widget .search-field {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px 18px;
    border-radius: 10px 0 0 10px;
    color: var(--white);
    font-size: 14px;
}

.single-post .widget .search-field::placeholder {
    color: var(--white-text);
}

.single-post .widget .search-submit {
    background: var(--main);
    border: none;
    padding: 14px 20px;
    border-radius: 0 10px 10px 0;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease;
}

.single-post .widget .search-submit:hover {
    background: var(--main-darker);
}

/* ========================================
   RESPONSIVIDADE
======================================== */

@media (max-width: 1199px) {
    .single-post .entry-title {
        font-size: 34px;
    }
    
    .single-post .entry-header {
        padding: 35px 40px 25px;
    }
    
    .single-post .entry-content {
        padding: 15px 40px 40px;
    }
    
    .single-post .entry-footer {
        padding: 25px 40px 35px;
    }
}

@media (max-width: 991px) {
    .single-post .row {
        flex-direction: column;
        gap: 50px;
    }
    
    .single-post .col-md-8,
    .single-post .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .single-post .entry-title {
        font-size: 30px;
    }
    
    .single-post .post-thumbnail img {
        height: 350px;
    }
    
    .single-post .post-navigation .nav-links {
        flex-direction: column;
        gap: 20px;
    }
    
    .single-post .post-navigation .nav-previous,
    .single-post .post-navigation .nav-next {
        max-width: 100%;
        text-align: left;
    }
}

@media (max-width: 767px) {
    .single-post {
        padding: 80px 0 60px;
    }
    
    .single-post .entry-header {
        padding: 25px 25px 20px;
    }
    
    .single-post .entry-content {
        padding: 10px 25px 30px;
        font-size: 16px;
    }
    
    .single-post .entry-footer {
        padding: 20px 25px 30px;
    }
    
    .single-post .entry-title {
        font-size: 26px;
    }
    
    .single-post .post-thumbnail img {
        height: 250px;
    }
    
    .single-post .post-meta {
        gap: 10px;
    }
    
    .single-post .post-meta span {
        padding: 5px 12px;
        font-size: 12px;
    }
    
    .single-post .entry-content h2 {
        font-size: 24px;
    }
    
    .single-post .entry-content h3 {
        font-size: 20px;
    }
    
    .single-post .entry-content blockquote {
        padding: 20px 25px;
        font-size: 16px;
    }
    
    .single-post .comments-area {
        padding: 30px 25px;
        margin-top: 40px;
    }
    
    .single-post .comment {
        padding: 20px;
    }
    
    .single-post .comment .children {
        padding-left: 15px;
    }
    
    .single-post .comment-form .submit {
        width: 100%;
        padding: 16px 30px;
    }
    
    /* Drop cap menor em mobile */
    .single-post .entry-content > p:first-of-type::first-letter {
        font-size: 3em;
    }
}

@media (max-width: 480px) {
    .single-post .entry-header,
    .single-post .entry-content,
    .single-post .entry-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .single-post .entry-title {
        font-size: 22px;
    }
    
    .single-post .post-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .single-post .comments-area {
        padding: 25px 20px;
    }
}

