/* Estilos espec�ficos para la p�gina de Flutter Row y Column */

.tutorial-article {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.article-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #ecf0f1;
}

.article-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 300;
}

.article-subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #3498db;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.content-section {
    margin-bottom: 3rem;
}

.content-section h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #ecf0f1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.content-section h3 {
    color: #34495e;
    font-size: 1.3rem;
    margin: 1.5rem 0 1rem 0;
}

.content-section h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin: 1.5rem 0 1rem 0;
}

.content-section h5 {
    color: #34495e;
    font-size: 1.1rem;
    margin: 1rem 0 0.5rem 0;
}

.content-section p {
    line-height: 1.7;
    margin-bottom: 1rem;
    color: #555;
}

/* Comparaci�n b�sica */
.basic-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 2rem 0;
}

.comparison-item {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid #ecf0f1;
}

.widget-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1rem;
}

.row-icon {
    background: #e74c3c;
    color: white;
}

.column-icon {
    background: #3498db;
    color: white;
}

.comparison-item h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.visual-example {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.row-visual {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.column-visual {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.box {
    width: 50px;
    height: 50px;
    background: #3498db;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-weight: bold;
}

/* Sintaxis */
.syntax-examples {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.syntax-item h4 {
    text-align: center;
    color: #2c3e50;
}

/* Propiedades */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.property-item {
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-top: 4px solid #3498db;
}

.property-item h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.property-values {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.value-tag {
    background: #3498db;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Alineaciones */
.alignment-examples {
    margin: 2rem 0;
}

.alignment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 1.5rem 0;
}

.alignment-item {
    padding: 1.5rem;
    border-radius: 8px;
}

.alignment-item h5 {
    text-align: center;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.alignment-visual {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.row-alignment {
    flex-direction: row;
}

.column-alignment {
    flex-direction: column;
    height: 200px;
}

.axis-label {
    font-size: 0.8rem;
    color: #7f8c8d;
    font-weight: 600;
}

.axis-label.vertical {
    writing-mode: vertical-lr;
    text-orientation: mixed;
}

.widgets-container {
    flex: 1;
    display: flex;
    gap: 4px;
    padding: 8px;
    border: 1px dashed #bdc3c7;
    border-radius: 4px;
}

/* Alineaciones espec�ficas */
.widgets-container.start {
    justify-content: flex-start;
}

.widgets-container.center {
    justify-content: center;
}

.widgets-container.space-between {
    justify-content: space-between;
}

.widgets-container.cross-start {
    align-items: flex-start;
}

.widgets-container.cross-center {
    align-items: center;
}

.widgets-container.cross-stretch {
    align-items: stretch;
}

.widget-box {
    width: 40px;
    height: 40px;
    background: #3498db;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-weight: bold;
}

.widget-box.tall {
    height: 60px;
}

.widget-box.short {
    height: 30px;
}

.widget-box.stretch {
    height: auto;
}

/* Ejemplos pr�cticos */
.practical-examples {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin: 2rem 0;
}

.example-item {
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.example-visual {
    margin: 1.5rem 0;
    padding: 2rem;
    border-radius: 6px;
    border: 1px solid #e1e8ed;
}

/* Ejemplos espec�ficos */
.app-bar-example {
    background: #2c3e50;
    border-radius: 8px;
    padding: 1rem;
}

.app-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
}

.nav-icon {
    font-size: 1.2rem;
}

.nav-title {
    flex: 1;
    text-align: center;
    font-weight: 600;
}

.nav-actions {
    display: flex;
    gap: 0.5rem;
}

.action-icon {
    padding: 0.5rem;
    border-radius: 4px;
    background: rgba(255,255,255,0.1);
}

.profile-card-example {
    max-width: 400px;
}

.profile-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e1e8ed;
}

.profile-avatar {
    width: 50px;
    height: 50px;
    background: #3498db;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-weight: 600;
    color: #2c3e50;
}

.profile-email {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.profile-action {
    color: #bdc3c7;
}

.login-form-example {
    max-width: 300px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-field {
    padding: 0.75rem;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
}

.form-buttons {
    display: flex;
    gap: 1rem;
}

.btn-secondary, .btn-primary {
    flex: 1;
    padding: 0.75rem;
    text-align: center;
    border-radius: 4px;
    font-weight: 600;
}

.btn-secondary {
    color: #2c3e50;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.example-code {
    background: #2c3e50;
    border-radius: 6px;
    overflow: hidden;
}

.example-code pre {
    margin: 0;
    padding: 1rem;
    font-family: 'Courier New', monospace;
    max-height: 300px;
    overflow-y: auto;
}

/* Demo interactivo */
.interactive-demo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
    padding: 2rem;
    border-radius: 8px;
}

.demo-controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.control-group label {
    font-weight: 600;
    color: #2c3e50;
}

.form-control {
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: #3498db;
    outline: none;
}

#widgetCountValue {
    font-weight: 600;
    color: #3498db;
}

.preview-area {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.layout-preview {
    border-radius: 8px;
    padding: 2rem;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-container {
    width: 100%;
    height: 250px;
    border: 2px dashed #bdc3c7;
    border-radius: 8px;
    padding: 1rem;
}

.widgets-container.interactive {
    width: 100%;
    height: 100%;
    border: none;
    gap: 8px;
}

.interactive-widget {
    min-width: 60px;
    min-height: 60px;
    background: #3498db;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1.2rem;
}

.preview-code {
    background: #2c3e50;
    border-radius: 6px;
    padding: 1rem;
}

.code-output code {
    color: #ecf0f1;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Tabla de comparaci�n */
.comparison-table {
    overflow-x: auto;
    margin: 1.5rem 0;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.comparison-table th {
    background: #3498db;
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid #ecf0f1;
}

.comparison-table tr:nth-child(even) {
}

/* Widgets especiales */
.special-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.special-widget {
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-top: 4px solid #e67e22;
}

.special-widget h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.expanded-example,
.flexible-example,
.spacer-example {
    display: flex;
    gap: 4px;
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 6px;
}

.box.fixed {
    width: 50px;
    background: #e74c3c;
}

.box.expanded {
    flex: 1;
    background: #3498db;
}

.box.flexible-2 {
    flex: 2;
    background: #e74c3c;
}

.box.flexible-1 {
    flex: 1;
    background: #3498db;
}

.spacer {
    flex: 1;
    background: transparent;
}

.code-snippet {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 1rem;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Errores comunes */
.troubleshooting {
    background: #fffaf0;
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid #e67e22;
}

.common-errors {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.error-item {
    padding: 1.5rem;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.error-item h4 {
    color: #e74c3c;
    margin-top: 0;
    margin-bottom: 1rem;
}

.code-solution {
    background: #2c3e50;
    border-radius: 6px;
    overflow: hidden;
    margin-top: 1rem;
}

.code-solution pre {
    margin: 0;
    padding: 1rem;
    color: #ecf0f1;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

/* Mejores pr�cticas */
.best-practices {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.practice-tip {
    padding: 1.5rem;
    border-radius: 6px;
    border-left: 4px solid #3498db;
}

.practice-tip h4 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 1rem;
}

/* Ejercicios */
.exercises {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.exercise {
    padding: 1.5rem;
    border-radius: 6px;
    border-left: 4px solid #27ae60;
}

.exercise h3 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 1rem;
}

.exercise-hint {
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
}

.exercise-hint p {
    margin: 0;
    font-style: italic;
}

/* Estilos para c�digo */
.code-example {
    border: 1px solid #e1e8ed;
    border-radius: 6px;
    padding: 1.5rem;
    margin: 1rem 0;
    overflow-x: auto;
}

.code-example h4 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.code-example pre {
    margin: 0;
    white-space: pre-wrap;
}

.code-example code {
    font-family: 'Courier New', monospace;
    color: #2c3e50;
    line-height: 1.5;
}
