/**
 * Profile Page Styles
 * Mobile-first, responsivo para tablet/desktop
 */

/* ===== Profile Container ===== */
.profile-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px;
    padding-bottom: 120px; /* Espaço para menu fixo */
    box-sizing: border-box;
}

/* ===== Profile Header ===== */
.profile-header {
    text-align: center;
    padding: 24px 20px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #f57c00 100%);
    border-radius: 16px;
    color: white;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

.profile-avatar {
    width: 70px;
    height: 70px;
    margin: 0 auto 12px;
    font-size: 70px;
    color: white;
    opacity: 0.95;
    line-height: 1;
}

.profile-header h2 {
    margin: 0 0 6px 0;
    font-size: 22px;
    font-weight: 700;
    word-break: break-word;
}

.profile-email {
    margin: 0;
    opacity: 0.9;
    font-size: 13px;
    word-break: break-all;
}

/* ===== Profile Stats ===== */
.profile-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 16px;
    box-sizing: border-box;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    min-width: 0;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    font-size: 20px;
    margin-bottom: 4px;
    color: var(--color-primary);
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 2px;
    line-height: 1.2;
    word-break: break-word;
}

.stat-label {
    font-size: 10px;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.3;
    word-break: break-word;
}

/* ===== Profile Sections ===== */
.profile-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.profile-section h3 {
    margin: 0 0 16px 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-section h3 i {
    color: var(--color-primary);
}

.profile-form .form-group {
    margin-bottom: 14px;
}

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

.profile-form input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.profile-form input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.1);
}

.profile-form .btn {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.profile-form .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.profile-form .btn:active {
    transform: translateY(0);
}

.profile-form .btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, #f57c00 100%);
    color: white;
}

.profile-form .btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    margin-top: 8px;
}

/* ===== Responsive - Small Tablet (480px+) ===== */
@media (min-width: 480px) {
    .profile-container {
        padding: 20px;
    }
    
    .profile-header {
        padding: 28px 24px;
    }
    
    .profile-avatar {
        width: 80px;
        height: 80px;
        font-size: 80px;
        margin-bottom: 14px;
    }
    
    .profile-header h2 {
        font-size: 26px;
    }
    
    .profile-email {
        font-size: 14px;
    }
    
    .stat-card {
        padding: 18px;
    }
    
    .stat-icon {
        font-size: 26px;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    .stat-label {
        font-size: 12px;
    }
}

/* ===== Responsive - Tablet (768px+) ===== */
@media (min-width: 768px) {
    .profile-container {
        padding: 32px 24px;
    }
    
    .profile-header {
        padding: 36px 32px;
        border-radius: 20px;
    }
    
    .profile-avatar {
        width: 100px;
        height: 100px;
        font-size: 100px;
        margin-bottom: 16px;
    }
    
    .profile-header h2 {
        font-size: 32px;
        margin-bottom: 8px;
    }
    
    .profile-email {
        font-size: 16px;
    }
    
    .profile-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
        margin-bottom: 24px;
    }
    
    .stat-card {
        padding: 24px 20px;
    }
    
    .stat-icon {
        font-size: 32px;
        margin-bottom: 8px;
    }
    
    .stat-value {
        font-size: 28px;
        margin-bottom: 4px;
    }
    
    .stat-label {
        font-size: 13px;
    }
    
    .profile-section {
        padding: 28px;
        margin-bottom: 20px;
    }
    
    .profile-section h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .profile-form .form-group {
        margin-bottom: 18px;
    }
    
    .profile-form label {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .profile-form input {
        padding: 14px 16px;
        font-size: 15px;
    }
    
    .profile-form .btn {
        width: auto;
        min-width: 200px;
        padding: 14px 24px;
        font-size: 16px;
    }
}

/* ===== Responsive - Desktop (1024px+) ===== */
@media (min-width: 1024px) {
    .profile-container {
        padding: 40px 32px;
    }
    
    .profile-stats {
        gap: 20px;
    }
    
    .stat-card {
        padding: 28px 24px;
    }
    
    .profile-section {
        padding: 32px;
    }
    
    /* Layout de 2 colunas para formulários em desktop */
    .profile-forms-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* ===== Logout Button ===== */
.profile-logout {
    margin-top: 16px;
}

.btn-logout {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px solid #dc3545;
    background: white;
    color: #dc3545;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-logout:hover {
    background: #dc3545;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.btn-logout:active {
    transform: translateY(0);
}

@media (min-width: 768px) {
    .btn-logout {
        width: auto;
        min-width: 200px;
        padding: 14px 24px;
        font-size: 16px;
    }
}
