/* Estilos espec�ficos para la p�gina de Flutter Padding */

.tutorial-article {
    max-width: 1000px;
    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: #02569B;
    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: #0175C2;
    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 p {
    line-height: 1.7;
    margin-bottom: 1rem;
    color: #555;
}

/* Demo b�sico de Padding */
.padding-demo-basic {
    margin: 2rem 0;
    padding: 2rem;
    border-radius: 8px;
}

.demo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
}

.widget-without-padding,
.widget-with-padding {
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.widget-without-padding .widget-content {
    background: #e74c3c;
    color: white;
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
}

.widget-with-padding .widget-content {
    background: #27ae60;
    color: white;
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
}

.widget-with-padding {
    border: 2px dashed #27ae60;
}

.demo-arrow {
    font-size: 2rem;
    color: #7f8c8d;
}

/* Constructores de EdgeInsets */
.constructors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

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

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

.visual-padding {
    border: 2px solid #bdc3c7;
    margin: 1rem 0;
    position: relative;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.padding-content {
    background: #3498db;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 600;
}

/* Estilos espec�ficos para cada tipo de padding */
.all-padding {
    padding: 20px;
}

.symmetric-padding {
    padding: 15px 25px;
}

.only-padding {
    padding: 10px 0 0 15px;
}

.ltrb-padding {
    padding: 20px 30px 5px 10px;
}

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

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

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

.use-case-icon {
    font-size: 2rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.use-case h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

/* Ejemplos visuales */
.visual-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;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Estilos para ejemplos visuales */
.padded-container {
    background: #3498db;
    color: white;
    border-radius: 8px;
    display: inline-block;
}

.padded-container .container-content {
    padding: 20px;
    font-weight: 600;
}

.padded-button {
    display: inline-block;
}

.flutter-button {
    background: #27ae60;
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.asymmetric-padding {
    background: #e67e22;
    color: white;
    border-radius: 6px;
    display: inline-block;
    padding: 40px 20px 10px 20px;
}

.asymmetric-padding .padding-content {
    background: transparent;
    border: 2px solid white;
}

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

.example-code pre {
    margin: 0;
    padding: 1rem;
    font-family: 'Courier New', monospace;
}

/* Tablas */
.properties-table {
    overflow-x: auto;
    margin: 1.5rem 0;
}

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

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

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

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

/* 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;
}

.padding-controls .control-group {
    margin-bottom: 1rem;
}

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

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

.preview-widget-container {
    border: 2px dashed #bdc3c7;
    display: inline-block;
}

.preview-widget {
    transition: all 0.3s ease;
}

.preview-widget.container-type {
    background: #3498db;
    color: white;
}

.preview-widget.button-type {
    background: #27ae60;
    color: white;
    border: none;
    cursor: pointer;
}

.preview-widget.text-type {
    background: transparent;
    color: #2c3e50;
}

.preview-widget.card-type {
    color: #2c3e50;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.widget-content {
    padding: 1rem;
    font-weight: 600;
    text-align: center;
}

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

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

/* Comparaci�n Padding vs Margin */
.comparison-demo {
    margin: 2rem 0;
    padding: 2rem;
    border-radius: 8px;
}

.comparison-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
}

.margin-example {
    padding: 30px;
    background: #bdc3c7;
    border-radius: 8px;
    position: relative;
}

.margin-box {
    padding: 20px;
    background: #3498db;
    border-radius: 6px;
}

.padding-box {
    padding: 15px;
    background: #27ae60;
    border-radius: 4px;
}

.content-box {
    padding: 20px;
    background: #e74c3c;
    color: white;
    border-radius: 2px;
    text-align: center;
    font-weight: 600;
}

.comparison-labels {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comparison-labels div {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 600;
}

.label-margin {
    background: #bdc3c7;
    color: #2c3e50;
}

.label-padding {
    background: #3498db;
    color: white;
}

.label-content {
    background: #e74c3c;
    color: white;
}

.comparison-explanation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

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

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

.explanation-item ul {
    margin: 0;
    padding-left: 1.5rem;
}

.explanation-item li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Estilos para pasos */
.steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.step h3 {
    color: #2c3e50;
    margin-top: 0;
}

/* 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, .code-example h5 {
    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;
}

/* Cajas de explicaci�n */
.explanation-box {
    padding: 1.5rem;
    border-radius: 6px;
    border-left: 4px solid #3498db;
    margin: 1.5rem 0;
}

.explanation-box h4 {
    color: #2c3e50;
    margin-top: 0;
}

.explanation-box ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.explanation-box li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Estilos para secci�n de problemas */
.troubleshooting {
    background: #fffaf0;
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid #e67e22;
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

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

.problem h3 {
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.problem ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.problem li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.pro-tip {
    background: #e1f5fe;
    padding: 1.5rem;
    border-radius: 6px;
    border-left: 4px solid #0288d1;
}

.pro-tip h4 {
    color: #0288d1;
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
