/* Estilos específicos para projeto Seed */

/* Module Cards */
.module-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    height: 100%;
    text-align: center;
    transition: transform 0.2s;
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.module-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    flex-direction: column;
}

.module-header i {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.module-header h5 {
    margin: 0;
    color: var(--wiki-primary);
}

.module-card code {
    background: #f8f9fa;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    display: inline-block;
    margin-top: 10px;
}

/* Best Practice Cards */
.best-practice-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    height: 100%;
    margin-bottom: 20px;
}

.best-practice-card h4 {
    color: var(--seed-color);
    margin-bottom: 15px;
}

/* Project Showcase */
.project-showcase {
    background: white;
    border: 1px solid #e9ecef;
    border-left: 4px solid var(--seed-color);
    border-radius: 0 8px 8px 0;
    padding: 20px;
    margin-bottom: 20px;
}

.project-showcase h4 {
    margin-bottom: 15px;
}

.showcase-stats {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.showcase-stats .stat {
    background: var(--seed-color);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--seed-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .showcase-stats {
        justify-content: center;
    }
    
    .module-card {
        margin-bottom: 20px;
    }
}

/* ===================================
   TEMA DARK - CARA CORE SEED
   =================================== */

/* Module Cards - tema dark */
[data-theme="dark"] .module-card {
    background: #f8f9fa;
    border-color: #dee2e6;
    color: #2c3e50;
}

[data-theme="dark"] .module-header h5 {
    color: #2c3e50;
}

[data-theme="dark"] .module-card p {
    color: #495057;
}

[data-theme="dark"] .module-card code {
    background: #e9ecef;
    color: #2c3e50;
}

/* Best Practice Cards - tema dark */
[data-theme="dark"] .best-practice-card {
    background: #f8f9fa;
    color: #2c3e50;
}

[data-theme="dark"] .best-practice-card h4 {
    color: #52c77a;
}

[data-theme="dark"] .best-practice-card h5 {
    color: #2c3e50;
}

[data-theme="dark"] .best-practice-card p,
[data-theme="dark"] .best-practice-card ul,
[data-theme="dark"] .best-practice-card li {
    color: #495057;
}

/* Project Showcase - tema dark */
[data-theme="dark"] .project-showcase {
    background: #f8f9fa;
    border-color: #dee2e6;
    border-left-color: #52c77a;
    color: #2c3e50;
}

[data-theme="dark"] .project-showcase h4 {
    color: #2c3e50;
}

[data-theme="dark"] .project-showcase p {
    color: #495057;
}

[data-theme="dark"] .showcase-stats .stat {
    background: #52c77a;
    color: #ffffff;
}

[data-theme="dark"] .stat-number {
    color: #52c77a;
}

[data-theme="dark"] .stat-label {
    color: #6c757d;
}

/* Alert boxes - tema dark */
[data-theme="dark"] .alert-warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

[data-theme="dark"] .alert-warning h5,
[data-theme="dark"] .alert-warning p {
    color: #856404;
}

.seed-guide a:not(.btn):not(.btn-wiki) {
    text-decoration: none;
    color: #464feb;
}

.seed-guide a:not(.btn):not(.btn-wiki):focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.seed-guide tr th,
.seed-guide tr td {
    border: 1px solid #e6e6e6;
    padding: 0.65rem;
}

.seed-guide tr th {
    background-color: #f5f5f5;
}

.seed-guide-card,
.seed-faq,
.seed-technical-notes {
    border: 1px solid #e6e6e6;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    background: #fff;
}

.seed-faq + .seed-faq {
    margin-top: 0.5rem;
}

.seed-faq summary,
.seed-technical-notes summary {
    cursor: pointer;
    font-weight: 600;
}

.seed-faq p {
    margin: 0.75rem 0 0;
}

.seed-critical-note {
    border-left: 4px solid #b42318;
    padding-left: 0.75rem;
}

html[data-theme="dark"] .seed-guide a:not(.btn):not(.btn-wiki) {
    color: #aeb8ff;
}

html[data-theme="dark"] .seed-guide-card,
html[data-theme="dark"] .seed-faq,
html[data-theme="dark"] .seed-technical-notes {
    background: #263244;
    border-color: #526176;
    color: #edf2f8;
}

html[data-theme="dark"] .seed-guide-card h3,
html[data-theme="dark"] .seed-guide-card strong,
html[data-theme="dark"] .seed-faq summary,
html[data-theme="dark"] .seed-technical-notes summary {
    color: #edf2f8;
}

html[data-theme="dark"] .seed-guide tr th,
html[data-theme="dark"] .seed-guide tr td {
    border-color: #526176;
}

html[data-theme="dark"] .seed-guide tr th {
    background-color: #364457;
    color: #edf2f8;
}

html[data-theme="dark"] .seed-guide tr td {
    background-color: #263244;
    color: #edf2f8;
}

html[data-theme="dark"] .seed-critical-note {
    border-left-color: #ff7b72;
}

@media (prefers-reduced-motion: no-preference) {
    .seed-guide [id] {
        scroll-margin-top: 1.5rem;
    }
}

/* Links no meio do texto: sublinhado como distincao que nao depende so da cor (WCAG 1.4.1) */
.alert a:not(.btn):not(.btn-wiki),
.seed-quickstart a:not(.btn):not(.btn-wiki) {
    text-decoration: underline;
}
