/* Estilos para el frontend del sistema de invitaciones */

.wedding-invitation-system {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.wim-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #e74c8c, #c0392b);
    color: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(231, 76, 140, 0.3);
}

.wim-header h2 {
    margin: 0 0 10px 0;
    font-size: 2.5em;
    font-weight: 300;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.wim-header p {
    margin: 0;
    font-size: 1.2em;
    opacity: 0.9;
}

.wim-stats-frontend {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.stat-card h3 {
    margin: 0 0 10px 0;
    font-size: 3em;
    font-weight: bold;
    background: linear-gradient(135deg, #e74c8c, #c0392b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card p {
    margin: 0;
    color: #666;
    font-size: 1.1em;
    font-weight: 500;
}

.wim-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.wim-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.wim-btn-primary {
    background: linear-gradient(135deg, #e74c8c, #c0392b);
    color: white;
    box-shadow: 0 4px 15px rgba(231, 76, 140, 0.3);
}

.wim-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(231, 76, 140, 0.4);
}

.wim-btn-secondary {
    background: white;
    color: #e74c8c;
    border: 2px solid #e74c8c;
}

.wim-btn-secondary:hover {
    background: #e74c8c;
    color: white;
    transform: translateY(-2px);
}

.wim-categories-summary {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.wim-categories-summary h3 {
    margin: 0 0 25px 0;
    color: #333;
    font-size: 1.8em;
    text-align: center;
    border-bottom: 2px solid #e74c8c;
    padding-bottom: 15px;
}

#categories-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #e74c8c;
    transition: all 0.3s ease;
}

.category-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.category-name {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.category-count {
    background: linear-gradient(135deg, #e74c8c, #c0392b);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 14px;
}

/* Loading spinner */
.wim-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.wim-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #e74c8c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .wedding-invitation-system {
        padding: 15px;
    }
    
    .wim-header {
        padding: 20px;
    }
    
    .wim-header h2 {
        font-size: 2em;
    }
    
    .wim-header p {
        font-size: 1em;
    }
    
    .wim-stats-frontend {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-card h3 {
        font-size: 2.5em;
    }
    
    .wim-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .wim-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    #categories-summary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .wim-header h2 {
        font-size: 1.8em;
    }
    
    .stat-card h3 {
        font-size: 2em;
    }
    
    .wim-categories-summary {
        padding: 20px;
    }
    
    .category-item {
        padding: 12px 15px;
    }
}

/* Animaciones */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* Tema oscuro (opcional) */
@media (prefers-color-scheme: dark) {
    .wedding-invitation-system {
        background-color: #1a1a1a;
        color: #ffffff;
    }
    
    .stat-card,
    .wim-categories-summary {
        background: #2d2d2d;
        color: #ffffff;
    }
    
    .category-item {
        background: #3d3d3d;
        color: #ffffff;
    }
    
    .category-item:hover {
        background: #4d4d4d;
    }
    
    .wim-categories-summary h3 {
        color: #ffffff;
    }
    
    .category-name {
        color: #ffffff;
    }
}
