/* ===================================================================================== */
/*                      📝 CSS DOS CARDS DE TEXTO - WEEKLY CROSS                       */
/* ===================================================================================== */

.text-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 40px;
    position: relative;
    transition: transform 0.3s ease;
}

.text-card:hover {
    transform: translateY(-5px);
}

.text-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #059669 100%);
}

.text-card-header {
    padding: 40px 50px 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.text-card-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.text-card-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* ===================================================================================== */
/*                            🎵 CONTROLES DE ÁUDIO INTEGRADOS                         */
/* ===================================================================================== */

.text-reader-controls {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.reader-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.2);
}

.reader-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.reader-btn:active {
    transform: translateY(0);
}

.reader-btn.playing {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.speed-control {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #4b5563;
    font-weight: 500;
}

.speed-control select {
    padding: 8px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.speed-control select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.reading-progress {
    flex: 1;
    min-width: 120px;
    height: 8px;
    background: #f3f4f6;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.reading-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
    position: relative;
}

.reading-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3));
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-20px); }
    100% { transform: translateX(0); }
}

.reading-status {
    font-size: 0.85rem;
    color: #6b7280;
    min-width: 140px;
    text-align: right;
    font-weight: 500;
}

/* ===================================================================================== */
/*                              📱 RESPONSIVIDADE ÁUDIO                                */
/* ===================================================================================== */

@media (max-width: 968px) {
    .text-reader-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 15px;
    }
    
    .reader-btn {
        width: 100%;
        justify-content: center;
        padding: 15px;
        font-size: 1rem;
    }
    
    .speed-control {
        justify-content: center;
    }
    
    .reading-status {
        text-align: center;
        min-width: auto;
    }
    
    .reading-progress {
        min-width: auto;
    }
}

@media (max-width: 640px) {
    .text-reader-controls {
        margin: 15px -10px 0 -10px;
        border-radius: 10px;
    }
    
    .reader-btn {
        font-size: 0.9rem;
        padding: 12px;
    }
}

/* ===================================================================================== */
/*                                  📐 LAYOUTS DOS CARDS                               */
/* ===================================================================================== */

.text-card-content {
    padding: 30px 50px;
}

/* Layout: Imagem à Esquerda */
.text-card-image-left .text-card-content {
    display: grid;
    grid-template-columns: 30% 70%;
    gap: 40px;
    align-items: start;
}

/* Layout: Imagem à Direita */
.text-card-image-right .text-card-content {
    display: grid;
    grid-template-columns: 70% 30%;
    gap: 40px;
    align-items: start;
}

/* Layout: Só Texto */
.text-card-text-only .text-card-content {
    display: block;
}

.card-image {
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.card-image:hover {
    transform: scale(1.05);
}

.card-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ===================================================================================== */
/*                                   📝 TIPOGRAFIA                                     */
/* ===================================================================================== */

.card-text {
    color: #374151;
    line-height: 1.8;
    font-size: 1.05rem;
}

.card-text p {
    margin-bottom: 20px;
    text-align: justify;
}

.card-text p:first-child::first-letter {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    float: left;
    margin: 8px 12px 0 0;
    color: #667eea;
    font-family: Georgia, serif;
}

.card-text strong {
    color: #667eea;
    font-weight: 600;
}

/* ===================================================================================== */
/*                                 📱 RESPONSIVIDADE                                   */
/* ===================================================================================== */

@media (max-width: 968px) {
    .text-card-image-left .text-card-content,
    .text-card-image-right .text-card-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .text-card-content {
        padding: 25px 30px;
    }
    
    .text-card-header {
        padding: 30px 30px 15px;
    }
    
    .text-card-title {
        font-size: 1.8rem;
    }
    
    .card-text p:first-child::first-letter {
        font-size: 2.8rem;
        margin: 4px 8px 0 0;
    }
    
    .text-card .audio-plugin-container .text-reader-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .text-card .audio-plugin-container .reader-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .text-card {
        margin-bottom: 30px;
    }
    
    .text-card-header {
        padding: 25px 20px 15px;
    }
    
    .text-card-content {
        padding: 20px;
    }
    
    .text-card-title {
        font-size: 1.6rem;
    }
    
    .card-text {
        font-size: 1rem;
    }
}

/* ===================================================================================== */
/*                              ✨ ANIMAÇÕES E EFEITOS                                 */
/* ===================================================================================== */

/* Animação suave ao carregar */
.text-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Delay escalonado para múltiplos cards */
.text-card:nth-child(1) { animation-delay: 0.1s; }
.text-card:nth-child(2) { animation-delay: 0.2s; }
.text-card:nth-child(3) { animation-delay: 0.3s; }
.text-card:nth-child(4) { animation-delay: 0.4s; }
.text-card:nth-child(5) { animation-delay: 0.5s; }

/* Efeito de leitura ativa (caso o plugin de áudio precise destacar o texto) */
.card-text.reading-active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.08) 100%);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}