/*
Theme Name: Maisbook V3
Theme URI: https://maisbook.com.br
Description: Sistema de seleção de fotos para fotógrafos - Versão 3
Version: 3.0.0
Author: Maisbook
Author URI: https://maisbook.com.br
Text Domain: maisbook
*/

/* ==========================================
   DESIGN SYSTEM - MAISBOOK V3
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Paleta (inspirada na v2, mas reequilibrada) */
    --color-primary: #C6283D;
    --color-primary-dark: #9B1B30;
    --color-primary-light: #E85A71;

    --color-secondary: #1A1A2E;
    --color-secondary-light: #2A2A4E;

    --color-accent: #FFF0F2;

    /* Fundo */
    --color-bg: #F8FAFC;
    --color-bg-card: #FFFFFF;
    --color-bg-soft: #FAFAFA;

    /* Texto */
    --color-text: #1A1A2E;
    --color-text-light: #4B5563;
    --color-text-muted: #9CA3AF;
    
    /* Cores de estado */
    --color-success: #00B894;
    --color-warning: #FDCB6E;
    --color-error: #E17055;
    --color-info: #74B9FF;
    
    /* Sombras */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);
    --shadow-glow: 0 0 40px rgba(198, 40, 61, 0.15);
    
    /* Bordas */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;
    
    /* Transições */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 450ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Tipografia */
    --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
}

/* ==========================================
   RESET & BASE
   ========================================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-dark);
}

/* ==========================================
   UTILITÁRIOS
   ========================================== */

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

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.hidden { display: none !important; }
.invisible { visibility: hidden; }

/* ==========================================
   BOTÕES
   ========================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: 600;
    line-height: 1;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    box-shadow: 0 10px 25px rgba(198, 40, 61, 0.18);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(198, 40, 61, 0.26);
    color: white;
}

.btn-secondary {
    background: var(--color-bg-card);
    color: var(--color-text);
    border: 2px solid #E5E5E5;
}

.btn-secondary:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-success {
    background: linear-gradient(135deg, var(--color-success) 0%, #00A383 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(0, 184, 148, 0.4);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 184, 148, 0.5);
    color: white;
}

.btn-lg {
    padding: 18px 36px;
    font-size: var(--font-size-lg);
    border-radius: var(--radius-lg);
}

.btn-sm {
    padding: 10px 20px;
    font-size: var(--font-size-sm);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ==========================================
   CARDS
   ========================================== */

.card {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 24px;
    transition: all var(--transition-normal);
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

.card-header {
    margin-bottom: 20px;
}

.card-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 8px;
}

.card-subtitle {
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
}

/* ==========================================
   FORMULÁRIOS
   ========================================== */

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    color: var(--color-text);
    background: var(--color-bg-card);
    border: 2px solid #E5E5E5;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.15);
}

.form-input::placeholder {
    color: var(--color-text-muted);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23636E72' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
    padding-right: 48px;
}

.form-help {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    margin-top: 6px;
}

/* ==========================================
   ALERTAS / MENSAGENS
   ========================================== */

.alert {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success {
    background: rgba(0, 184, 148, 0.1);
    color: #00A383;
    border: 1px solid rgba(0, 184, 148, 0.2);
}

.alert-error {
    background: rgba(225, 112, 85, 0.1);
    color: #C0392B;
    border: 1px solid rgba(225, 112, 85, 0.2);
}

.alert-warning {
    background: rgba(253, 203, 110, 0.15);
    color: #B7791F;
    border: 1px solid rgba(253, 203, 110, 0.3);
}

.alert-info {
    background: rgba(116, 185, 255, 0.1);
    color: #2980B9;
    border: 1px solid rgba(116, 185, 255, 0.2);
}

/* ==========================================
   TOAST NOTIFICATIONS
   ========================================== */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--color-bg-card);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 400px;
    animation: slideIn 0.3s ease;
    border-left: 4px solid var(--color-primary);
}

.toast.success {
    border-left-color: var(--color-success);
}

.toast.error {
    border-left-color: var(--color-error);
}

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

/* ==========================================
   SPINNER / LOADING
   ========================================== */

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 107, 107, 0.2);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 249, 245, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* ==========================================
   BADGES
   ========================================== */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    font-size: var(--font-size-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background: rgba(0, 184, 148, 0.15);
    color: var(--color-success);
}

.badge-warning {
    background: rgba(253, 203, 110, 0.2);
    color: #B7791F;
}

.badge-pending {
    background: rgba(178, 190, 195, 0.2);
    color: var(--color-text-light);
}

/* ==========================================
   RESPONSIVIDADE
   ========================================== */

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .btn {
        padding: 12px 24px;
    }
    
    .card {
        padding: 20px;
    }
}

