/* ===================================
   BLOCOS VISUAIS IMERSIVOS
   =================================== */

/* Visual Boxes (Warning & Tip) */
.visual-box {
    display: flex;
    gap: 16px;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.visual-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.warning-box {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border-left: 4px solid #F59E0B;
}

.tip-box {
    background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
    border-left: 4px solid #10B981;
}

.box-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    line-height: 1;
}

.box-body {
    flex: 1;
}

.box-title {
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: #0F172A;
}

.box-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #1E293B;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 8px;
}

.box-content::-webkit-scrollbar {
    width: 6px;
}

.box-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.box-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.box-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* Better text formatting */
.box-content p {
    margin-bottom: 12px;
}

.box-content p:last-child {
    margin-bottom: 0;
}

.box-frequency {
    display: inline-block;
    margin-top: 12px;
    padding: 6px 14px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #0F172A;
}

/* Bullet Lists */
.visual-list {
    margin: 20px 0;
    padding: 20px;
    background: #F8FAFC;
    border-radius: 12px;
    border-left: 4px solid #3B82F6;
}

.list-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 16px;
}

.styled-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.styled-list li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 12px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #1E293B;
}

.styled-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10B981;
    font-weight: 700;
    font-size: 1.2rem;
}

/* Definition Cards */
.definition-card {
    display: flex;
    gap: 20px;
    padding: 24px;
    margin: 20px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.definition-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.4);
}

.card-icon {
    font-size: 3.5rem;
    flex-shrink: 0;
    line-height: 1;
    opacity: 0.9;
}

.card-body {
    flex: 1;
}

.card-term {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.card-definition {
    font-size: 1.1rem;
    line-height: 1.7;
    opacity: 0.95;
}

/* Example Boxes */
.example-box {
    margin: 20px 0;
    padding: 20px;
    background: #FFFBEB;
    border: 2px solid #FCD34D;
    border-radius: 12px;
}

.example-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.example-icon {
    font-size: 1.5rem;
}

.example-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #92400E;
}

.example-content {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #78350F;
}

/* Comparison Tables */
.comparison-table-wrapper {
    margin: 20px 0;
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.comparison-table th {
    background: linear-gradient(135deg, #0D9488 0%, #0F766E 100%);
    color: white;
    padding: 16px 20px;
    font-weight: 700;
    font-size: 1.1rem;
    text-align: left;
}

.comparison-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #E5E7EB;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #1E293B;
}

.comparison-table tr:nth-child(even) {
    background: #F9FAFB;
}

.comparison-table tr:hover {
    background: #F3F4F6;
}

/* Flashcards */
.flashcard {
    width: 100%;
    height: 250px;
    perspective: 1000px;
    cursor: pointer;
    margin: 20px 0;
}

.flashcard-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flashcard.flipped .flashcard-inner {
    transform: rotateY(180deg);
}

.flashcard-front,
.flashcard-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.flashcard-front {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    color: white;
}

.flashcard-back {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    transform: rotateY(180deg);
}

.flashcard-label {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    margin-bottom: 16px;
}

.flashcard-text {
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.6;
}

.flashcard-hint {
    margin-top: 20px;
    font-size: 0.85rem;
    opacity: 0.7;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .visual-box {
        flex-direction: column;
        gap: 12px;
    }

    .box-icon {
        font-size: 2rem;
    }

    .definition-card {
        flex-direction: column;
        gap: 16px;
    }

    .card-icon {
        font-size: 2.5rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 12px 16px;
        font-size: 0.95rem;
    }

    .flashcard {
        height: 200px;
    }

    .flashcard-text {
        font-size: 1.1rem;
    }
}