/*
Theme Name: Ding Mobile Topup
Theme URI: https://tudominio.com
Author: Tu Nombre
Author URI: https://tudominio.com
Description: Tema personalizado para plataforma de recargas m車viles.
Version: 1.0
Text Domain: ding
Requires at least: 5.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* =Theme Structure
-------------------------------------------------------------- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px 0;
}

/* =Header Styles
-------------------------------------------------------------- */
.site-header {
    background: #2c3e50;
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.site-branding {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    margin-left: 20px;
}

.main-navigation a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

/* =Form Styles
-------------------------------------------------------------- */
.ding-alert {
    padding: 15px;
    background: #ffebee;
    color: #c62828;
    border-radius: 4px;
    margin-bottom: 20px;
}

.ding-btn {
    background: #3498db;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background 0.3s;
    display: inline-block;
    text-align: center;
}

.ding-btn:hover {
    background: #2980b9;
    color: white;
}

.ding-select, .ding-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    margin-bottom: 15px;
}

/* =Footer Styles
-------------------------------------------------------------- */
.site-footer {
    background: #2c3e50;
    color: white;
    padding: 30px 0;
    margin-top: 50px;
}

/* =Responsive Design
-------------------------------------------------------------- */
@media (max-width: 768px) {
    .site-branding {
        flex-direction: column;
        text-align: center;
    }
    
    .main-navigation ul {
        margin-top: 15px;
        justify-content: center;
    }
    
    .ding-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Añade esto al final de topup.css */
.ding-btn.processing {
    position: relative;
    color: transparent !important;
}

.ding-btn.processing .ding-loading-small {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: ding-spin 1s ease-in-out infinite;
}

.ding-debug {
    background: #fff;
    border: 1px solid #ddd;
    padding: 15px;
    margin-top: 20px;
    border-radius: 4px;
    font-size: 13px;
}

.ding-debug pre {
    background: #f5f5f5;
    padding: 10px;
    border-radius: 4px;
    overflow: auto;
    max-height: 200px;
}

.ding-result-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.ding-success {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

.ding-error {
    background: #ffebee;
    border-left: 4px solid #f44336;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

.error-codes {
    background: #fff;
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 4px;
    border: 1px solid #eee;
}

.error-codes h4 {
    margin-top: 0;
}

.error-codes ul {
    margin: 0.5rem 0 0 1rem;
}

.ding-btn {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.ding-btn:hover {
    background: #0056b3;
}

/* Agregar a topup.css */
.ding-result-container pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 15px;
    border-radius: 5px;
    overflow: auto;
    max-height: 300px;
    font-size: 13px;
    line-height: 1.5;
    margin-top: 10px;
}